Right. Which brings me back to my original question. I probably shouldn't have used the term 'call'. Sorry. I'm using the onsubmit() and its not working. The example I found in the javascript section of your forums is:
<form name="whatever" action="blah.php" onsubmit="return checkForm();">
<input type="text" name="test">
<input type="submit" value="submit form">
</form>
<script language="javascript">
function checkForm()
{ var bRet;
oFrm = document.forms["whatever"];
if (oFrm.test.value== "")
{ alert("Please enter some text");
bRet = false;
}
else
{ oWin = window.open("", "windowName", "height=200,width=400,toolbar=1" );
oFrm.target="windowName";
bRet = true;
}
return bRet;
}
</script>
The little ! icon in the status bar shows there is an error. Otherwise, it is just ignored and the action page opens in the same window, not a new one.
~ bruwmac ~