StartThePresses
Wednesday, January 16, 2008
for the html link onclick attribute, the function must return false to ignore href
<a href="http://test.com" onClick="return funcName()" >Text</a>
Must use the "return" command, or the funcName return value (true or false) is ignored.
A common issue is forgetting the return. This will cause the href to always execute.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment