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!

sizing the browser

Status
Not open for further replies.

FOXPROG

Programmer
Jan 14, 2001
51
US
Hi,

Can anyone tell me the commands to size the browser to a fixed size so my fields don't wrap?

Thanks
Frank
 
For a quick solution, you could place all your fields in a fixed size table. (Eg: <table border=&quot;0&quot; width=&quot;600&quot; height=&quot;400&quot;>)

Another solution involves javascript, and opening a new window that is sized to your specifications. I'm not sure if you can resize the default browser window when a client navigates to your site.

Javascript: In your body tag, put this

onload=&quot;javascript: window.open('urlofpage.htm','nameofpage','height=400,width=600')&quot;

Additional properties to add:
toolbar=yes/no
menubar=yes/no
location=yes/no
scrollbars=1/0
resizable=yes/no
status=yes/no
border=yes/no
screenx=# Horz position in Netscape
screeny=# Vert position in Netscape
left=# Horz position in IE
top=# Vert position in IE
 
>I'm not sure if you can resize the default browser window when a client navigates to your site.

why not? :)

top.resizeTo(x,y);
& invoke it onresize (but resizing onresize - pretty buggy..) Victor
 
I figured there was a way, just couldn't think of it. You can do darn near anything with JS, just not the stuff you really want to!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top