Beginner JavaScript Tutorial – 22 – Event Handlers




Facebook – https://www.facebook.com/TheNewBoston-464114846956315/
GitHub – https://github.com/buckyroberts
Google+ – https://plus.google.com/+BuckyRoberts
LinkedIn – https://www.linkedin.com/in/buckyroberts
reddit – https://www.reddit.com/r/thenewboston/
Support – https://www.patreon.com/thenewboston
thenewboston – https://thenewboston.com/
Twitter – https://twitter.com/bucky_roberts

Original source


33 responses to “Beginner JavaScript Tutorial – 22 – Event Handlers”

  1. It works regardless of case, I tried it with the most bizarre cases like Onclick, oNclick, onclick, ONclick, ONCLICK, onClick etc., it always worked. Check out w3school's JavaScript tutorials. You can change the code there to see what happens.

  2. i want to call a function for onClick but not the same every time ,, like when user enters something it should be take as function call for onClick
    for EX- if user enters in form box as boston –> onClick alert should come as welcome boston

  3. How about using the for loop to make the pop box appear as many times as you want like this;
    form>
    <input type="button" value="Click me" onClick = "for(x=0; x < 10; x++) {alert('how dee!!!');}" />
    </form>

Leave a Reply