I'm trying to get window.onresize to work but it just won't and i don't understand why.
It works if I put it in body onresize but that's not a possibility for me.
All I get i run this code is the alert onload and nothing if I resize the window.
Please help me
<html>
<head>
<script language="JavaScript"><!--
window.onresize=window.alert('you resized it');
//--></script>
</head>
<body>
</body>
</html>
It works if I put it in body onresize but that's not a possibility for me.
All I get i run this code is the alert onload and nothing if I resize the window.
Please help me
<html>
<head>
<script language="JavaScript"><!--
window.onresize=window.alert('you resized it');
//--></script>
</head>
<body>
</body>
</html>