<class home>  <Jscript>   <back   next>

Resizing a Window

You can use Javascript to add the control the size of windows that pop-up or open.

example1>>> (opening a new window with a link that is sized)
example2>>>
(opening a new window when the page loads)
example3>>> (resizing and relocating a window when the page loads)


How?

A. Opening a new window with a link that is sized and in a specific location. Put in the link:

<a href="javascript:;window.open('http://www.google.com',
'newpage','height=100,width=200,left=0,top=235,
scrollbars=no,resizable=no')">
linkname</a>

B. Method for opening a new window when the page loads. In the BODY tag put:

<body onload="javascript:;window.open('http://www.google.com',
'newpage','height=100,width=200,left=0,top=235,
scrollbars=no,resizable=no')"

C. Method to relocate a window inside of that window. Put in the Body tag:

<body onload="javascript:;resizeTo(800,600);moveTo(0,0);"