jester626 Posted October 9, 2007 Share Posted October 9, 2007 I have a page with javascript (yea no DUH!) The problem is. The script seems pretty simple and straight forward and works like a champ in IE. However, the code constantly throws up the Firefox error console every time I "run it". No errors show in the console, but the box keeps popping up. Could someone have a look at my code and tell me if they see a potential problem that may be causing this situation. Thanks in advance, Jester <CODE> <head> <title>Untitled Document</title> <script language="JavaScript"> function answer(t){ document.getElementById('1').style.display='none'; document.getElementById(t).style.display='block'; } </script> </head> <body> <a onClick="answer('1')" href="javascript:">Question</a><br> <br> <div id="1" style="display:none";> Answer <br><br> </div> </body> </CODE> Link to comment https://forums.phpfreaks.com/topic/72462-firefox-error-console-popping-up/ Share on other sites More sharing options...
fenway Posted October 9, 2007 Share Posted October 9, 2007 "javascript:" isn't valid anywhere... void(0)... perhaps. Link to comment https://forums.phpfreaks.com/topic/72462-firefox-error-console-popping-up/#findComment-365457 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.