<html>
<head>
<title>Using the layerX property for the event object</title>
</head>
<body>
<script language="JavaScript">
<!--
function changeSize(){
window.resizeTo(300,400);
}
function handle(evnt){
alert("The new width (X value) after the resize is: " + evnt.layerX);
return true;
}
window.onresize = handle;
-->
</script>
Drag the browser border to trigger the resize event
</body>
</html>
|