Multiple oninput Events |
Multiple oninput Events |
Terminator |
Sep 19 2016, 04:15 PM
Post
#1
|
Advanced Member Group: Members Posts: 218 Joined: 19-March 15 Member No.: 22,398 |
I am making a Password Generator, is it ok to put oninput like I did below?
I have it set to run a function to generate the password, as well as change the display number for the slider when you move the slider. CODE <input type="range" id="num" oninput="GeneratePassword(); numOutputID.value=num.value" min="8" max="50" step="1" value="12"> <output id="numOutputID">12</output> This is the first time I have ever had a reason 2 put more than 1 thing inside of oninput, I can just separate with a semicolon right? I did not get any HTML Validator or Chrome Debugging JavaScript errors. This post has been edited by Terminator: Sep 19 2016, 04:16 PM |
Lo-Fi Version | Time is now: 25th April 2024 - 10:31 PM |