View Single Post
Old 04-21-2009, 11:04 PM   #3 (permalink)
allworknoplay
The Gregarious
 
allworknoplay's Avatar
 
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
allworknoplay is on a distinguished road
Default

Quote:
Originally Posted by Kalle View Post
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....
allworknoplay is offline  
Reply With Quote