Using javascript width a-tag href atribute
July 28, 2009 2 Comments
Recently i’ve descovered a problem with using javascript and events with anchor tags
the folowing code is not compatible with IE6, but works on everything else
<a href=”javascript:return;” onclick=”javascript:doSomething();”>mjau</a>
when run this code results in Javascript – error in IE6..
to resolve this,. issue ,.. you can do following ,.. move the return statment after
your javascript funktion.. like this
<a href=”#” onclick=”javascript:doSomething(); return false;”>mjau</a>
problem solved ,.. (c:
Stunning… very great subject. I am going to blog about it too.
hey there.. welcome to my blog,.. (c: i am looking forward to your article.