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

How Do I Set The Browser Size After Using "_blank"

Status
Not open for further replies.

neroe

Technical User
Feb 27, 2003
54
GB
Hi
What I want to do is use _blank in <a href></a> so that when the new browser window opens it opens at a size that I have set. I'm sure this goes in <a href></a> but I'm not sure how.

Thanks in advance
neroe
 
not sure how to put the size in the link, unless u open it as a window instead of a link:
< href=&quot;javascript:void(0)&quot; onClick=&quot;window.open('page.html','windowname', 'width=200, height=300, scrollbars, menu')&quot;>

you might need to put ...bars, menu'); return false&quot;>
but im not sure

for all the window.open functions check the internet, do a google search for &quot;javascript window.open options&quot; if u add all the right options you can make a popupwindow look just like a normal browser window.


To resize a page once its opened u can use this script:

<body onLoad=&quot;resizeTo(300,400)&quot;>

width,height

good luck,


I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top