Results 1 to 3 of 3

Thread: Help with FireFox's onresize event

  1. #1
    Registered User
    Array
    Join Date
    Jan 2009
    Location
    Jackson MO
    Posts
    1,515

    Default Help with FireFox's onresize event

    OK, I'm trying to get Firefox to refresh the page on a resize. I added a onresize statement to the body as follows:

    Code:
    <body onresize="Javascript:window.location.reload(true);>
    This works in IE, chrome, safari, but not in FF. Any suggestions?

    Click here for the page. here.

    For those of you who think you may recognize this page, I wish to assure you it is only your imagination.
    HouseView™ - The leading real estate site for South East Missouri. Follow us on Twitter @HVOL.
    Jackson MO Real Estate, Cape Girardeau Missouri Real Estate, Festus Missouri Real Estate

  2. #2
    Post Impressionist
    Array
    vangogh's Avatar

    Join Date
    Aug 2008
    Location
    Boulder, Colorado
    Posts
    15,061
    Blog Entries
    1

    Default

    Try removing the word javascript from your code

    <body onresize="window.location.reload(true);>

    If that doesn't work try:

    <body onresize="document.location.reload(true);>

    Out of curiosity why reload the page when someone resizes the window? Seems more confusing since a page refresh is unexpected when resizing the window.
    l Join me as I share my creative process and journey as a writer | StevenBradley.me
    l Design, Development, Marketing, and SEO Tutorials | Steven Bradley's Notebook
    l Get my book about Design Fundamentals

  3. #3
    Registered User
    Array
    Join Date
    Jan 2009
    Location
    Jackson MO
    Posts
    1,515

    Default

    The 2 slideshows in the center change layout depending on browser size. The larger browser windows get controls and higher res photos. I remove the controls and drop the resolution for smaller windows.
    HouseView™ - The leading real estate site for South East Missouri. Follow us on Twitter @HVOL.
    Jackson MO Real Estate, Cape Girardeau Missouri Real Estate, Festus Missouri Real Estate

Bookmarks

Posting Permissions

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