Wednesday, March 4, 2009

JavaScript return false


<a href="#" onclick="func(); return false;">theLinkText</a>

The return false tells the browser that the action of returning
a reference to a
URL should not evaluate. It will instead, return
false
and therefore do nothing with the octothorpe (hey, how
often does one get to use that in a sentence?). This even
works in IE...

No comments:

Post a Comment