how would you use vbscript to resize your window?
Printable View
how would you use vbscript to resize your window?
I'm not sure if this just works in IE, but this will resize a browser window:
Code:
<html>
<header>
</header>
<body onload="resizeTo(250,300)">
This is the contents
</body>
</html>
thanks. do you also know how to get rid of the address bar and links on the browser so that only the X in the top right corner is avaiable?
I know how to do this when you use JavaScript to open a new window.
Let's say you have a link on your site "Click Me." The HTML looks like:
When the user clicks on the link, a new window will appear 200 pixels high, 200 pixels wide, and will not contain any of the browser menus.Code:<a href="#" onClick="window.open('htmlpagetoopen.html', 'nameofwindow', 'height=200,width=200,toolbars=no,location=no,menubar=no');">Click Me</a>
HTH
You cannot do this to a parent browser window, without having a signed script. However, if you open a window, in IE you can use a setting called fullscreen found in the window.open method.
Here is the documentation on it:
http://msdn.microsoft.com/library/de...ods/open_0.asp
Now should you want to sign a script, go to verisign for info. This is the company that Microsoft recommends.
http://www.verisign.com
Hope this helps.
thanks.