Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

window.open

Status
Not open for further replies.

welshone

Programmer
Jul 30, 2001
414
GB
hello,
I am currently opening a page from a form using submit.
then target="_new"
how can I modify the windows appearence.
my code is :

<SCRIPT language="javascript">
function ValidateForm(){
var dt=document.s1
if (isDate(dt.Date1.value)==false){
dt.Date1.focus()
return false
}

dt.submit();
}
</SCRIPT>

<form method="post" name="s1" action=".\Results.asp" target="_new">
<DIV align="center"></DIV>
<DIV align="center">Date 1 (yyyy-mm-dd) <INPUT name="Date1" size="20"></DIV><p>
<DIV align="center">Date 2 (yyyy-mm-dd) <INPUT name="Date2" size="20"></DIV><p>
<DIV align="center">&nbsp;</DIV>
<DIV align="center">
<INPUT TYPE="button" Value=" Submit " Name="b" onclick="return ValidateForm()">
</DIV>
</form>

I need the results pagfe to be opened in a new window with no scrollbars.

thanks guys.
 
you will probebly need to use window.open and then pass the parameters there. I do not think use "_new" will let you set new window parameters.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top