Preserved Topic: javascript protocol ? |
|
---|---|
Author | Thread |
Nervous Wreck (II) Inmate From: Somewhere out there |
posted 10-16-2001 21:28
Hi, this is my first post in this board. Just wondering if anyone can help me out a little here. Recently while doing some simple javascripts, I came across something which puzzled me. |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 10-16-2001 21:52
instead of using an onClick="some JS here" |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 10-16-2001 22:11
The reason void() didn't work is because void isn't a *function*, it's an *operator*, like * or + or "new". It's typically followed by parenthesis to group what it works on. void(0) is the same as void 0. So, to say void() is like saying "3 + "... you're missing the operand. |
Nervous Wreck (II) Inmate From: Somewhere out there |
posted 10-17-2001 09:17
hey, thks people. These explanations reallly helped. |