PDA

Click to See Complete Forum and Search --> : Load results of submitting form in new windows with Javascript?


IClarke
Jan 4th, 2001, 03:51 AM
At the moment i'm using this code to load the results of a search into a new window. I really need to be able to format the properties of the windows so that it looses the toolbar and has a fixed size etc. Can anyone tell me how to modify the existing code with Javascript to do this?

<form target="_blank" method="get" action="http://search.atomz.com/search/">

Regards
Ian.

Mark Sreeves
Jan 4th, 2001, 09:52 AM
is this any help?


<HTML>
<head>
<script language=javascript>
var i = 0;
function doIt()
{
window1=window.open('','newWin','scrollbars=yes,width=175,height=300')
window1.location.href = "http://www6.ewebcity.com/coolsite/some.asp?txt1=" + document.frm1.txt1.value + "&txt2=" + document.frm1.txt2.value;
}
</script>
</head>
<BODY>
<form name=frm1>

<input name=txt1>
<input name=txt2>

<INPUT TYPE="BUTTON" VALUE="Go" onClick="doIt()">

</form>
</body>
</HTML>