Graeme06
Technical User
- Jun 6, 2006
- 60
Hi I currently have some HTML code which I pasted below (there is more to it, but those are the relevent parts).
I want to get valid strict XHTML, and it does not like the target="_blank", so someone suggested using Javascript and an onclick. The problem being that the action happens in the form tag, not the input button's tag, so I don't know how I can fix this. I tried putting the javascript code in both the form and input button tags, but neither worked properly. Any ideas?
Thanks,
Graeme
------------------
<form action="search.php" method="post" target="_blank" id="search" title="search" dir="ltr" lang="en">
<input name="submit" type="submit" id="submit" class="google" tabindex="3" value="Search" />
</form>
I want to get valid strict XHTML, and it does not like the target="_blank", so someone suggested using Javascript and an onclick. The problem being that the action happens in the form tag, not the input button's tag, so I don't know how I can fix this. I tried putting the javascript code in both the form and input button tags, but neither worked properly. Any ideas?
Thanks,
Graeme
------------------
<form action="search.php" method="post" target="_blank" id="search" title="search" dir="ltr" lang="en">
<input name="submit" type="submit" id="submit" class="google" tabindex="3" value="Search" />
</form>