Window width

A

Andi B

Greetings all, thankyou for your help with the other things I posted about -
but Im afraid I've another question:

Is there a way I can get a document to resize the popup window it appears in
when it loads?

Regards
 
G

Grant Wagner

Andi said:
Greetings all, thankyou for your help with the other things I posted about -
but Im afraid I've another question:

Is there a way I can get a document to resize the popup window it appears in
when it loads?

Regards

<body onload="window.resizeTo(200, 200);">

<url:
http://devedge.netscape.com/library/manuals/2000/javascript/1.3/reference/window.html#1203300
/>
<url:
http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/resizeto.asp
/>
<url: http://www.mozilla.org/docs/dom/domref/dom_window_ref90.html#1019942 />

<body onload="window.resizeBy(0, 40);">

<url:
http://devedge.netscape.com/library/manuals/2000/javascript/1.3/reference/window.html#1203248
/>
<url:
http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/resizeby.asp
/>
<url: http://www.mozilla.org/docs/dom/domref/dom_window_ref89.html#1019908 />

Note that some browsers and popup blockers prevent this sort of browser
manipulation, so you can be sure it'll ever resize anything. Also note that for
Netscape 4.x, the resizeTo() dimensions are the outer dimensions of the browser
window, but for other browsers, I believe they are the dimensions of the
viewable browser area.

--
| Grant Wagner <[email protected]>

* Client-side Javascript and Netscape 4 DOM Reference available at:
*
http://devedge.netscape.com/library/manuals/2000/javascript/1.3/reference/frames.html

* Internet Explorer DOM Reference available at:
*
http://msdn.microsoft.com/workshop/author/dhtml/reference/dhtml_reference_entry.asp

* Netscape 6/7 DOM Reference available at:
* http://www.mozilla.org/docs/dom/domref/
* Tips for upgrading JavaScript for Netscape 7 / Mozilla
* http://www.mozilla.org/docs/web-developer/upgrade_2.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,079
Messages
2,570,574
Members
47,207
Latest member
HelenaCani

Latest Threads

Top