Thread View: fj.lang.javascript
1 messages
1 total messages
Started by Thibault
Fri, 19 Dec 1997 00:00
problem compatibily Netscape/MSIE
Author: Thibault
Date: Fri, 19 Dec 1997 00:00
Date: Fri, 19 Dec 1997 00:00
67 lines
2038 bytes
2038 bytes
I have a beautiful ;-) script MSIE & NC 4.0 able to hide or add frame:
---------------------------------------
<SCRIPT>
function check()
{
if (top.location != location)
{
document.frm.button.value="hide frame"
document.frm2.button2.value="hide frame"
}
else
{
document.frm.button.value="Add frame"
document.frm2.button2.value="Add frame"
}
}
function frame_noframe()
{
if (top.location != location)
{
top.location.href = window.location.href
}
else
{
top.location="nightfr.htm"
}
}
</SCRIPT>
<BODY>
...
<form name="frm">
<input type="button" value="Hide frame" name="button" onclick="frame_noframe()">
...
<form name="frm2">
<input type="button" value="Hide frame" name="button2" onclick="frame_noframe()">
...
</BODY>
--------------------------------------
BUT NN 3.0 told me that "frm2 has no properties defined as button2". Why? I really don't understand because, if I only put :
<SCRIPT>
function check()
{
if (top.location != location)
{
document.frm.button.value="hide frame"
}
else
{
document.frm.button.value="Add frame"
}
}
function frame_noframe()
{ ....
}
</SCRIPT>
<BODY>
<form name="frm">
<input type="button" value="Hide frame" name="button" onclick="frame_noframe()">
...
</BODY>
It works on NN 3.x ! Where is the mistake? Can someone help me?
If you want to see application go to http://freezone.exmachina.net/RadioAlma/NightClub/test2.htm
Thib's
REPLY to thibs@infonie.be (If you speak French, I prefer because English is not my language)
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads