I was using this javascript earlier but i don't want to specify dimensions..... ...i would like it to automatically adjust according to the user's browser:
Expand|Select|Wrap|Line Numbers
- <script language="javascript"> { window.resizeTo( 850,725 ) }</script>
I'm using this for my coursework, on a website......an d desperately need to get it work.
So is there a way so that window adjusts its size depending on the browser being used?
It would be a gr8 help .........thnx
--------------------------------------------------------------------------------------
i found this coding as a result of sum searching:
javascript:
Expand|Select|Wrap|Line Numbers
- <script language="javascript"> function resize_window() { var width,height; if(typeof window.pageX){height = window.pageY;width = pageX;} else if(typeof window.screenX){height = window.screenY;width = screenX;} else {height=document.body.offsetHeight;width=document.body.offsetWidth;} } </script>
[html]
<body onload="resize_ window()">[/html]
but again to no avail......any flaws in this piece of coding??