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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

opening a new window

Status
Not open for further replies.

mwa

Programmer
Jul 12, 2002
507
US
I have this at the top of a page:
<%po = Request.QueryString(&quot;po&quot;)
line = cstr(cint(Request.QueryString(&quot;line&quot;)))
user = lcase(Request.Cookies(&quot;UserID&quot;))
strQuery = &quot;close_po_resized.asp?&quot; & &quot;po=&quot; & po
& &quot;&line=&quot; & line & &quot;&user=&quot; & user
%>

And this in the BODY tag:
<BODY language=vbscript onload=&quot;window.open '<%=strQuery%>', '_self', 'height=200,width=200,status=yes,toolbar=no,menubar=no,location=no'&quot;>

when the page loads, it goes to the new page but none of the browser settings change. Any ideas???

Thanks,
mwa
 
Hi mwa,

Try putting brackets around your window.open tag.. Also.. you cannot change the browser properties such as Toolbar, status and such once the browser window is already open.

Try this:

<BODY language=vbscript onload=&quot;window.open ('<%=strQuery%>', 'new_window', 'height=200,width=200,status=yes,toolbar=no,menubar=no,location=no');&quot;>


Cheers,

Gorkem.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top