Re: self.resizeTo
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: self.resizeTo

From: alu <none@none.com>
Date: Wed Aug 03 2005 - 16:29:43 CEST

<wmarler@kol.co.nz> wrote
> Hi,
> I'm trying to make the browser window resize itself when a new page
> loads in the current window.It works for FireFox but not in IE6.
> I've tried putting this under head, body and at the very top of the
> html script of the new page being loaded,
>
> <script Language="javascript">
> self.resizeTo(800,800);
> </script>

Works fine in IE6 for me.
You could try <body onload="self.resizeTo(800,800);">
and remove the Flash links.

> and I've tried putting javascript in the Flash links, using the same
> window name as the current window.
>
> getURL("javascript:var NewWindow=window.open('test1.html', 'newWin',
> 'width=800, height=800, left=0, top=0,
> resizable=Yes,');NewWindow.focus();")
Received on Tue Oct 18 03:04:52 2005