sanity check: onClick not loading frame? (IE/NS)

sanity check: onClick not loading frame? (IE/NS)

Post by Alexandr » Fri, 18 Aug 2006 15:34:06

Not sure why none of these permutations are working. I appreciate a
second set of eyes!

<form id="form1" name="form1" >
<input name="Submit1" type="submit" tabindex="10"
value="Done" />
<input name="Submit2" type="submit" tabindex="10"
onClick="parent.mainFrame.location='SelectSystem.html';" value="Done"
<input name="Submit3" type="submit" tabindex="10"
value="Done" />

The frameset is defined as such:
<frameset rows="161,*" cols="*" frameborder="no" border="0"
<frame src="TitleBarContent.html" name="topFrame" scrolling="No"
noresize="noresize" id="topFrame" title="TopFrame" />
<frameset rows="*" cols="164,*" framespacing="0" frameborder="no"
<frame src="LeftNavContent.html" name="leftFrame" scrolling="No"
noresize="noresize" id="leftFrame" title="LeftFrame" />
<frame src="SelectSystem.html" name="mainFrame" id="mainFrame"
title="MainFrame" />

Many thanks to those with a sharp eye!


sanity check: onClick not loading frame? (IE/NS)

Post by Bart Van d » Fri, 18 Aug 2006 20:46:59

Your code should work, though it's not ideally constructed. Please
consider using <input type="button"> in stead of <input
type="submit"> . Also, the closing </form> tag is missing.

But you can keep this more down to earth; I'ld do something like

<form method="get" action="SelectSystem.html" target="mainFrame">
<input type="submit" value="Done">