Detect Window Resize

0

When I try that - it works fine for me and I get the alert.  I am also using IE6 on WinXP.  My body tag looks like this:

<body onResize="alert('body resize');">

There is another way to do the same thing, and perhaps that method may work for you when this one doesn't for some reason.  Put a script tag in your page like this:


<script language="Javascript">
document.body.onresize = function (){
alert("Thanks for resizing!");
}
</script>

That method also works for me, and it may work for you too.

Labels:
Loading related posts...
Reactions: 

0 comments:

Post a Comment

2010 WEBSITE20. All rights reserved.