thunderain
Programmer
Hi:
Can anyone help me. My opening page has three frames. When i type a number into the box and click on the Search button, I want the results to apear in the same page in the main body area (frame called "main information", page called "indexbody.html"
. Instead the page opens in a new pop up window. I have looked over the FAQ's, they seem to tell me just to add an onClick to the button. I tried 3 examples which don't seem to work. Am I missing something?
onClick="parent.lower.location.href = 'indexbody.html;'
onClick="parent.main information.location.href='indexbody.html'"
onClick="parent.window.location.href="indexbody.html"'
Here is my form code:
<form action="javascript:void(0)" target="main information" onSubmit="search(this); return false;">
<td height="29" valign="top" bgcolor="#000000" width="118">
<div align="left">
<img src="images/search3.jpg" width="90" height="29" border="0">
<input type="text" name="srchval" value="" size="10">
<input type="image" img src="images/gobutt.jpg" align="absmiddle" width="30" height="25" border="0" onClick="parent.main information.location.href='indexbody.html'"></div>
</td>
</form>
Thank you
thunderain
Can anyone help me. My opening page has three frames. When i type a number into the box and click on the Search button, I want the results to apear in the same page in the main body area (frame called "main information", page called "indexbody.html"

onClick="parent.lower.location.href = 'indexbody.html;'
onClick="parent.main information.location.href='indexbody.html'"
onClick="parent.window.location.href="indexbody.html"'
Here is my form code:
<form action="javascript:void(0)" target="main information" onSubmit="search(this); return false;">
<td height="29" valign="top" bgcolor="#000000" width="118">
<div align="left">
<img src="images/search3.jpg" width="90" height="29" border="0">
<input type="text" name="srchval" value="" size="10">
<input type="image" img src="images/gobutt.jpg" align="absmiddle" width="30" height="25" border="0" onClick="parent.main information.location.href='indexbody.html'"></div>
</td>
</form>
Thank you
thunderain