Hi,
Im trying to develop [URL=”http://filesharing.wikidot.com/compare:one-click-hosters-search-engines”]this search form
I was thinking to count the words and split the queries and post the form several times to a new window.
Please have a look at the following test code. In IE7 this opens 2 new windows as expected, but in FF both 2 and 3 it only submits the form once.
What am I doing wrong?
[code=html]
<html>
<head>
<title>search box test</title>
<script type=”text/javascript”>
function doIt()
{
document.forms.searchForm.submit();
document.forms.searchForm.submit();
}
</script>
</head>
<body>
<form name=”searchForm” action=”http://www.google.com/search” target=”_blank”>
<input name=hl type=hidden value=en>
<input type=hidden name=q title=”Google Search” value=””>
<input maxlength=2048 name=lineEdit size=70 title=”Google Search” value=””>
<input type=”button” name=”btnG” value=”Google Search” onclick=”doIt()” >
</form>
</body>
</html>
ps: i first thought FF protects against accidental double submission, but if you change the text in the search box in javascript, it still doesn’t work. Manually clicking the button twice works as expected.
thx in advance for your help.