Jump to content

Firefox error console popping up


jester626

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.