Beginner JavaScript Tutorial - 22 - Event Handlers
Top Comments
All Comments (34)
-
can you put a form inside a loop ?
-
Have I seen this alert box in another tutorial? I've been through the XHTML videos and these JavaScript so far and I'm almost sure this alert box thing has been taught in a similar way a few videos back there.
-
@HeadJavaProgrammer -_-
-
Ohh this is something new :)
-
I tried this handler with select tags and nothing happened. Help anyone?
Also, I wanted to know what is the statement for redirection. I need a drop-down and I want it to redirect to someplace depending on the user's selection immediately after he clicks on any of the elements.
-
@NikcsTipps Thanks very much!
-
@druidofluhn that's because document.write overwrites everything with what you write (in here)
you can select a div with getElementByID('IDofthediv').d
ocument.write(this in here only overwrites what is in the div. if there isn't anything in the div it only writes this) :) -
onclick / onClick....it's the same!
-
@Kryppuk Yep, I was just about to say that one must ensure that the "c" in onclick is NOT be capitalized (for the reason you stated)! Just the opposite of what Bucky says LOL
Nevertheless, these are excellent tutorials.
-
@Raysyedrocks Try escaping the single quote with a backslash.
haha i can't handle these good tutorials :P
bohterham 11 months ago 17
I wrote, "something stupid!" in my box.
Fbiman93 11 months ago 11