Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

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 are here: irt.org | FAQ | JavaScript | Window | Q1323 [ previous next ]

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>

©2018 Martin Webb