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> Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.