Monday, January 2, 2012

How to set Window Position and Size Using Javascirpt



<script type="text/javascript">  
function changeScreenSize(w,h)
     {   
    
//     window.offsetX=0;
//     Window.offsetY=0;
     window.resizeTo( w,h ) 
     self.moveTo(0,0);  
     }
</script>

How to Call : <body onload="changeScreenSize(500,1000)">

No comments:

Post a Comment