
11-24-2004, 03:50 AM
|
|
SEO Junior and a half
|
|
Join Date: Nov 2004
Location: USA
Posts: 38
|
|
Everything is possible Dude!
There is a methos for winodw object called resizeTo(iWidth,iHeight) which sets the size of the window to the specified width and length. Check the following simple script:
<HTML>
<HEAD>
<Script language="javascript">
function resizeWin(){
window.resizeTo(width,Height);
}
</script>
</HEAD>
<BODY onload="resizeWin(300,300)">
</Body>
</HTML>
When the page loads onload event is triggered and calls the resizeWin function defined in the Head section and it resizes the current window.
you can also use other events such as onClick, onMouseOver, ... for different purposes
|