This link has been bookmarked by 18 people . It was first bookmarked on 16 Nov 2006, by Arrix Z.
-
18 Feb 10
Waylon BaumgardnerWhen a script uses href="”javascript:void(0);” and doesn't work, use this alternative
-
13 Jun 09
-
17 Feb 09
-
<a href="#" onclick="aFunction();return false;">
-
Another useful feature of the #/return false method is that if your JS functions don’t work properly, the return false gets skipped, the page refreshes, and you wind up with “#” in the address bar. Sometimes it’s a handy “flash” of content that will draw your eye to firebug to see what the problem is.
-
what point is there in using anything other than a URL in the href attribute anymore? If you want a good read on accessible JavaScript that discusses why only a URL should appear in the href, give DOM Scripting
-
<a href=”;” rel=”nofollow”>
-
-
14 Feb 09
-
13 Jan 09
-
<a href="#" onclick="aFunction();return false;">
-
Another useful feature of the #/return false method is that if your JS functions don’t work properly, the return false gets skipped, the page refreshes, and you wind up with “#” in the address bar. Sometimes it’s a handy “flash” of content that will draw your eye to firebug to see what the problem is.
-
what point is there in using anything other than a URL in the href attribute anymore? If you want a good read on accessible JavaScript that discusses why only a URL should appear in the href, give DOM Scripting
-
<a href=”;” rel=”nofollow”>
-
-
17 Dec 08
-
15 Oct 08
-
07 Oct 08
-
15 Sep 08
-
18 Jun 08
-
17 Apr 08
-
14 Jan 08
-
21 Nov 07
Adrian BengtsonVarför man inte ska ha "javascript:void(0);" som länk på javascript utan brädgård, men för att slippa hoppa till toppen ska man också ha return false med.
-
There are plenty of occasions when coding JavaScript events where you simply need to call a function, for which an entire event registration model is too lengthy. The most commonly used method is to bind your event to an anchor link. The user clicks and the onclick event is fired, calling a reference to a function.
-
-
24 Jun 07
-
29 Mar 07
-
16 Nov 06
-
<a href="http://blog.reindel.com/#" onclick="aFunction();return false;"> A Link </a>
-
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.