04-21-2009, 11:04 PM
|
#3 (permalink)
|
|
The Gregarious
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
|
Quote:
Originally Posted by Kalle
This executes a javascript event when the link
No because the "javascript" protocol (which isn't actually a protocol) has a special meaning to the browsers.
Thats because you assign a callback to the event, if you call it directly it will be the result of the "documentClick()" function, which returns null (void).
|
Great thanks, that clears it up.
So the browsers just "naturally" understand what to do when you have "a href=javascript :whatever()".....
I hope DOM isn't that hard, I'll be jumping on that this weekend....
|
|
|
|