PDA

View Full Version : How do I use the _self tag with my search engine?



Maverick
April 18th, 2001, 20:11
I've got a search engine on my site. When I press the submit button it opens the page in a new window whereas I want it to open over the top of the old page. I can do this by putting a base target _self tag into the header but this affects my whole site. Any ideas anyone?

Here's part of the code in case that helps...

<form method="get" action="http://search.atomz.com/search/">
<input size=25 name="sp-q">
<input type=submit value="Search" name="submit">

ashben
April 19th, 2001, 00:11
<form method="get" action="http://search.atomz.com/search/" target="_self">

Maverick
April 19th, 2001, 14:13
Thanks, that worked perfectly. I didn't expect it to be that simple :)