Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Aug 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Refreshing window on re-size not working in firefox

    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:

    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.

  • #2
    Smokes a Lot
    Join Date
    Jul 2003
    Location
    CA, USA
    Posts
    1,594
    Thanks
    5
    Thanked 20 Times in 20 Posts
    Why that doesn't work in FF I couldn't tell you, but this works:

    Code:
    <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.

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


    Basscyst
    Last edited by Basscyst; 08-09-2005 at 11:34 PM.
    Helping to build a bigger box. - Adam Matthews


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •