parent.frames works in IE not Netscape

windows

Guest
In the following code, I have a problem in Netscape with the onclick="parent.frames etc. There are 3 frames with this code in one and I'm trying to execute to place the appropriate code in the other 2.<br />
<br />
As usual, any suggestions will be helpful. That is except the one about a proctologist.<br />
<br />
Thanks,<br />
RON C<br />
<br />
<br />
<body text="#C0C0C0" bgcolor="#000060" link="#CC0000" vlink="#00CC00" alink="#FF6600"><br />
<form><br />
<center><br />
<input type="image" src=http://www.htmlforums.com/archive/index.php/"home.gif" border="0" hspace="0" vspace="0" height="32" width="132" align="MIDDLE" onclick="parent.frames[1].location='buttons2blank.htm';parent.frames[2].location='home.htm';"><input type="image" src=http://www.htmlforums.com/archive/index.php/"introduction.gif" border="0" hspace="0" vspace="0" height="32" width="132" align="MIDDLE" onclick="parent.frames[1].location='buttons2introduction.htm';parent.frames[2].location='introduction.htm';"><input type="image" src=http://www.htmlforums.com/archive/index.php/"commercial.gif" border="0" hspace="0" vspace="0" height="32" width="132" align="MIDDLE" onclick="parent.frames[1].location='buttons2blank.htm';parent.frames[2].location='commercial\FrameSet.htm';"><input type="image" src=http://www.htmlforums.com/archive/index.php/"liturgical.gif" border="0" hspace="0" vspace="0" height="32" width="132" align="MIDDLE" onclick="parent.frames[1].location='buttons2blank.htm';parent.frames[2].location='liturgical\FrameSet.htm';"><input type="image" src=http://www.htmlforums.com/archive/index.php/"residential.gif" border="0" hspace="0" vspace="0" height="32" width="132" align="MIDDLE" onclick="parent.frames[1].location='buttons2residential.htm';parent.frames[2].location='residential.htm';"><input type="image" src=http://www.htmlforums.com/archive/index.php/"about.gif" border="0" hspace="0" vspace="0" height="32" width="132" align="MIDDLE" onclick="parent.frames[1].location='buttons2about.htm';parent.frames[2].location='about.htm';"><br />
</center><br />
</form><br />
</body><!--content-->I've tried replacing <br />
parent.frames[1].location<br />
with<br />
parent.BUTTONS2.location etc.<br />
<br />
where -- Buttons is the name of frame 1 from the creation step.<br />
<br />
Is Netscape just impossible?<br />
<br />
Any suggestions will be help.<br />
<br />
Thanks,<br />
RON C<!--content-->try parent.frames['framename'].document.location<br />
or<br />
parent.frames['framename'].document.location.href<!--content-->What next? That didn't work either. It seems that onClick is just flushing the code after it.<br />
<br />
Thanks,<br />
RON C<!--content-->try top instead of parent. if that does not work then y better post the frameset, because the only other explanation is that your code is screwed up.<!--content-->Top does not work either. I placed a alert('xxxx'); after the onClick and it works only in IE also. Below is the code that creates the frames.<br />
<br />
I'm totally baffled. No icon suitable!!!!<br />
RON C<br />
<br />
<br />
<html><br />
<head><br />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><br />
<meta name="generator" content="HTML Tidy, see <!-- w --><a class="postlink" href="http://www.w3.org">www.w3.org</a><!-- w -->"><br />
<meta name="Author" content="Ron Chambers"><br />
<meta name="GENERATOR" content="Mozilla/4.75 [en] (Windows NT 5.0; U) [Netscape]"><br />
</head><br />
<br />
<frameset cols="100%" rows="48,48,*" FRAMEBORDER=0 FRAMESPACING=0 BORDER=0><br />
<frame src=http://www.htmlforums.com/archive/index.php/"buttons1.htm" name="BUTTONS1" SCROLLING=no MARGINHEIGHT=0 MARGINWIDTH=0><br />
<frame src=http://www.htmlforums.com/archive/index.php/"buttons2blank.htm" name="BUTTONS2" SCROLLING=no MARGINHEIGHT=0 MARGINWIDTH=0><br />
<frame src=http://www.htmlforums.com/archive/index.php/"home.htm" name="PAGES" SCROLLING=no MARGINHEIGHT=0 MARGINWIDTH=0><br />
</frameset><br />
<br />
<body><br />
</body><br />
</html><!--content-->Just tried Navigator 6.2 and it works ok but not in 4.79.<br />
<br />
Thanks for the help.<br />
<br />
RON C<!--content-->You have a body tag in the frameset. get ride of it frameset and body are mutally exclusive.<br />
<br />
Then if top.frames['button2''].location does not work it is some kind of Netscrap 4.x problem and from my perspective, is not worth pursuing. Probably something to do with the fact that you are using multiple input type="image" which have the same functionality as submit. I can only assume that, tht breaks the form which pretty commonly happens in Netscrap. Try running it with jus tone input "image" if that works then you will have to use image links in stead of input.<br />
<br />
Cd&<!--content-->With or without the <body></body> code, NS4 or does not work. NS6.2 does.<br />
<br />
I now use prompt to ask user if he wishes to continue even though frames is off.<br />
<br />
Thanks,<br />
RON C<!--content-->:angry:<br />
<br />
I just figured it out with a little research. Netscrap 4.x does not support the onClick event for input type="image". Either use an image in a link or use input type="submit".<br />
<br />
Gotta love Netscrap <br />
<br />
:angry:<!--content-->
 
Back
Top