Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q1323 How can I resize a window when the mouse moves over it, and resize to a different size when mouse moves out of the window?

irt.org | Knowledge Base | JavaScript | Window | Q1323 [ previous next ]

Q1323 How can I resize a window when the mouse moves over it, and resize to a different size when mouse moves out of the window?

You could try this (seems only to work in Internet Explorer):

<html>
<head>
<script language="JavaScript"><!--
document.onmouseover=resizemebig;
document.onmouseout=resizemesmall;

function resizemebig() {
   window.resizeTo(800,600);
}

function resizemesmall() {
   window.resizeTo(200,200);
}

//--></script>
</head>

<body>
....
</body>

</html>

Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.