ASP.NET Cafe
new tricks every week

Javascript:void(0); may cause problems in old IE6

Saturday, 26 April 2008 10:46 by dmitriy

Just found VERY hard bug. The problem appears only in IE6, but some projects still support this browser. If you are using <a href="javascript:void(0);" >Button</a>

And attached OnClick event. You can encounter some really weird things (in event hadler, it works but some strange way). For me - I had to change src of some img tag. But after this no reload happened. Then I've used href="#" the problem was solved. Somebody knows more about these problems? 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Categories:  
Actions: E-mail | del.icio.us | Kick it! | DZone it! | Permalink | Comments (0) | Comment RSSRSS comment feed

Comments

Add comment


 

  Country flag

biuquote
  • Comment
  • Preview
Loading