I am not sure what I am missing, but I am trying to get the search results to appear in a div within my page. I am using the "target=_frameid" code, but it still opens the search in a new window. Here is the code I am using:
for the form:
<div class="searcharea" id="searcharea" style="position: absolute; left: 500px; top: 62px; width: 237px; height: 116px">
<form action="search.html" method="GET" target="_MAIN">
<input type="text" name="zoom_query" size="20" target="_main"> <input type="submit" value="Search" id="button" >
</form> </div>
for the frame:
<div id="main">
<iframe id="MAIN" src="#" scrolling="no" frameborder="0"> </iframe>
</div>
This is all within the same page. I am using Javascript for the search function.
Thanks!
for the form:
<div class="searcharea" id="searcharea" style="position: absolute; left: 500px; top: 62px; width: 237px; height: 116px">
<form action="search.html" method="GET" target="_MAIN">
<input type="text" name="zoom_query" size="20" target="_main"> <input type="submit" value="Search" id="button" >
</form> </div>
for the frame:
<div id="main">
<iframe id="MAIN" src="#" scrolling="no" frameborder="0"> </iframe>
</div>
This is all within the same page. I am using Javascript for the search function.
Thanks!
Comment