M
Mr. X.
Hello.
In Netscape (I have checked new version 9.0.0.5) , there is different
behaviour, that doesn't work at all.
I think the problem may be related to the id.
Here is the code
(For those who want my URL for their database - I don't have any,
because the site is under construction, and that's the best I can give.
I still think it's enough for the case to understand what the problem is).
==============================================
The HTML
========
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="main.css" />
<SCRIPT SRC="Main.js" type="text/javascript">
</SCRIPT>
</head>
<body bgcolor = "lightblue">
<div id = "wrap">
<div id = "main_page">
<div id = "nav">
<ul>
<li onclick = "call_func()"><a href="#">test</a></li>
</ul>
</div>
<iframe src = "my_src.aspx" frameborder = "0" scrolling = "no" id =
"main_iframe" />
</div>
</div>
</body>
</html>
*************
main.js
=====
....
function call_func()
{
main_iframe.location = "test_html.html";
}
.... The above doesn't work only on Netscape version 9.0.0.5
....
When I do the following code, program works fine :
in main.js :
function call_func()
{
parent.parent.document.location = "test.html";
}
The follows work fine, but refresh the whole page.
All the above works fine on IE, and Safari (as far as I have checked),
but only the first example I gave:
function call_func()
{
main_iframe.location = "test_html.html";
}
doesn't work for Netscape only.
Thanks
In Netscape (I have checked new version 9.0.0.5) , there is different
behaviour, that doesn't work at all.
I think the problem may be related to the id.
Here is the code
(For those who want my URL for their database - I don't have any,
because the site is under construction, and that's the best I can give.
I still think it's enough for the case to understand what the problem is).
==============================================
The HTML
========
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="main.css" />
<SCRIPT SRC="Main.js" type="text/javascript">
</SCRIPT>
</head>
<body bgcolor = "lightblue">
<div id = "wrap">
<div id = "main_page">
<div id = "nav">
<ul>
<li onclick = "call_func()"><a href="#">test</a></li>
</ul>
</div>
<iframe src = "my_src.aspx" frameborder = "0" scrolling = "no" id =
"main_iframe" />
</div>
</div>
</body>
</html>
*************
main.js
=====
....
function call_func()
{
main_iframe.location = "test_html.html";
}
.... The above doesn't work only on Netscape version 9.0.0.5
....
When I do the following code, program works fine :
in main.js :
function call_func()
{
parent.parent.document.location = "test.html";
}
The follows work fine, but refresh the whole page.
All the above works fine on IE, and Safari (as far as I have checked),
but only the first example I gave:
function call_func()
{
main_iframe.location = "test_html.html";
}
doesn't work for Netscape only.
Thanks