N
noon
Can't get this to work, tried every bit of code I could think of and
every snippet I could find out there.
I have a form with the js code in the onsubmit action. I know, I
shoved it all in there instead of making a function. I don't have
access to include a .js file or put it in the head, work with me.
How can I get this to work?
<form method="get" action="#" onsubmit="var newWin =
window.open(\'http://google.com/search?q=\'+this.imdbSearch.value+\'\',
\'IMDBWindow\');window.setTimeout(\'self.focus();\',500);if(!
newWin.opener) newWin.opener=this;return false;">
<input type="text" name="imdbSearch" size="40">
<input type="submit" value="Search">
</form>
every snippet I could find out there.
I have a form with the js code in the onsubmit action. I know, I
shoved it all in there instead of making a function. I don't have
access to include a .js file or put it in the head, work with me.
How can I get this to work?
<form method="get" action="#" onsubmit="var newWin =
window.open(\'http://google.com/search?q=\'+this.imdbSearch.value+\'\',
\'IMDBWindow\');window.setTimeout(\'self.focus();\',500);if(!
newWin.opener) newWin.opener=this;return false;">
<input type="text" name="imdbSearch" size="40">
<input type="submit" value="Search">
</form>