[Javascript] IE onclick problem

Claude Schneegans schneegans at internetique.com
Wed Apr 16 00:39:04 CDT 2008


You must have something else in your code which causes the trouble.
This works every click for me (IE 6)

<a href="#" onclick="return addPlayer();">Add Player</a>
<SCRIPT>
function addPlayer()
  {
  alert("Ha ha !");
  }
</SCRIPT>

Have you "Notification for Javascript errors" enabled?
If you have any compilation error in you javascript in your page, it 
will cease executing.




More information about the Javascript mailing list