...

View Full Version : Refreshing window on re-size not working in firefox



PK246
08-09-2005, 07:25 PM
Dear friends,

I want window to be refreshed whenever it's re-sized.

The following code works in IE but it does not work in firefox.

Here is the code:


<script type="text/javascript">
window.onresize=new Function("location.reload();");
</script>

How do I make it work in firefox browser also?

I'll appreciate your help.

Thank you.

Basscyst
08-09-2005, 11:32 PM
Why that doesn't work in FF I couldn't tell you, but this works:



<script type="text/javascript">

function reloadWin()
{
window.location.href="http://www.YourSitesUrl.com";
}
window.onresize=reloadWin;
</script>


I will say though, there are very, very few circumstances where this behavior would be acceptable to me as the end user.

Heh, that still doesn't work, will send you to a different url on resize though, just not the current url, strange.

Basscyst



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum