lunedì, marzo 24, 2008

JavaScript Window Resize

Hm…I know many people are against doing this from a user experience perspective…

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>JavaScript Resize Test</TITLE>
<script language="JavaScript" type="text/javascript">
function resize() {
window.moveTo(0,0);
window.resizeTo(window.screen.availWidth, window.screen.availHeight);
}
</script>
</HEAD>
<BODY onload="resize();">
</BODY>
</HTML>