I have this function that shows or hides text on the page... and it
works great in IE... but I can't make it work in Mozilla type
browsers.. I tried reading up about different things to do... but
nothing I tried works... Can someone please help me?
<head>
<script language="JavaS cript">
function toggleDisplay(o bjRef){
objRef.style.di splay = (objRef.style.d isplay=="none") ? "" : "none";
}
</script>
</head>
<body>
<a href=javascript :toggleDisplay( text1)>Test</a>
<div id="text1" style="display: none;">
here is some text....
</div>
</body>
Thanks for any help you can give me!!!
-Sarah
works great in IE... but I can't make it work in Mozilla type
browsers.. I tried reading up about different things to do... but
nothing I tried works... Can someone please help me?
<head>
<script language="JavaS cript">
function toggleDisplay(o bjRef){
objRef.style.di splay = (objRef.style.d isplay=="none") ? "" : "none";
}
</script>
</head>
<body>
<a href=javascript :toggleDisplay( text1)>Test</a>
<div id="text1" style="display: none;">
here is some text....
</div>
</body>
Thanks for any help you can give me!!!
-Sarah
Comment