Friday 9 September 2011

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