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!

New browser window properties

Status
Not open for further replies.

sickpuppy

Technical User
Feb 22, 2001
40
GB
How can I constrain the window properties (width, height, scrollbars etc)when opening a new browser window?

I am returning the results of a db search into the new window via form submission with 'target=_blank'

Any ideas?

Thanks
 
I think the problem I am having relates to using a form to query a recordset and return the results into hte new browser. Using javascript to set properties is ok but i am using <form action=&quot;results.asp&quot; method=&quot;post&quot; name=&quot;formRequest&quot; target=&quot;_blank&quot;>

How can i specify window properties from this point?

I have tried combining the 2 mothods but I get two windows open and have removed the action parameter and do not pass the form value to the new window
 
have you tried this?

function createNew(){
window.open(&quot; location=yes, directories=no, status=no, menubar=yes, scrollbars=yes, resizable=no, copyhistory=yes, width=400, height=400&quot;);

return true;


}

<form action=&quot;results.asp&quot; method=&quot;post&quot; onSubmit=&quot;return createNew()&quot; name=&quot;formRequest&quot; target=&quot;myNewWindow&quot;>



just a thought

simon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top