View Single Post
Old 11-06-2012, 08:19 PM   PM User | #1
chasero13
New to the CF scene

 
Join Date: Nov 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
chasero13 is an unknown quantity at this point
Javascript/ Internet Explorer 9 issues

I have the following script on a website:

<script language="javascript">
function toggle(targetId) {
target = document.all(targetId);
if (target.style.display == "none"){
target.style.display="";
} else {
target.style.display="none";
}
}
//-->
</script>

<font color="red" size="4" face="helvetica"><a href="javascript:toggle('Link1')"><font color="red">EXAMPLE</font></a>
<div id="Link1" style="display: none"></font>

<div align="left"><font color="#4a4a4a" size="2" face="helvetica">Example only. Example only. Example only.</font></div>
</div>

Code works fine on Internet explorer 6, chrome and opera. However, on internet explorer 9, it does not work. I have verified browser settings. Any help is appreciated. Thanks
chasero13 is offline   Reply With Quote