[thelist] IE javascript window resize problem

Cymbala, Greg Greg.Cymbala at Den.Galileo.com
Tue Jul 16 12:56:01 CDT 2002


In IE (4.0 and above), you can use the window.resizeTo() method:

resizeTo Method  Internet Development Index

----------------------------------------------------------------------------
----

Sets the size of the window to the specified width and height values.

Syntax

window.resizeTo(iWidth, iHeight)
Parameters

iWidth Required. Integer that specifies the width of the window in pixels.
iHeight Required. Integer that specifies the height of the window in pixels.


Return Value

No return value.


HTH,
Greg

-----Original Message-----
From: Michael Mell [mailto:mike at nthwave.net]
Sent: Tuesday, July 16, 2002 11:51 AM
To: thelist
Subject: [thelist] IE javascript window resize problem


I want a javascript function to resize the front window and load new
content. Here is a function which works as desired in Netscape but not in
IE:

++++++++++++++++++++++
<script type="text/javascript">
function newContent() {
     self.outerWidth = 830;
     self.outerHeight = 660;
     self.location.href= 'page2.html';
}
</script>

<a href="javascript:newContent()">click here</a>
++++++++++++++++++++++

How can I do this in IE?

Many thanks.


The information in this electronic mail message is sender's business
Confidential and may be legally privileged.  It is intended solely for the
addressee(s).  Access to this Internet electronic mail message by anyone
else is unauthorized.  If you are not the intended recipient, any
disclosure, copying, distribution or any action taken or omitted to be taken
in reliance on it is prohibited and may be unlawful.
The sender believes that this E-mail and any attachments were free of any
virus, worm, Trojan horse, and/or malicious code when sent. This message and
its attachments could have been infected during  transmission. By reading
the message and opening any attachments, the recipient accepts full
responsibility for taking protective and remedial action about viruses and
other defects. Galileo International is not liable for any loss or damage
arising in any way from this message or its attachments.





More information about the thelist mailing list