Anyone know how to refresh/reload page on browser resize

Anyone know how to refresh/reload page on browser resize

Hi,

I need to some how reload the page when a user re sizes their browser. I'm using jquery.  

I'm able to reload the page on click and i can peform a function on resize, but for some reason the reload bit doesn't work when in the function that firs on resize.

What i have so far:

This works on click
Code:
            
  1. $('#target').click(function() {


    window.location.reload(true);
    });





and this fires the resizeWindow function ok but the window.location.reload(true); is ignored
  1. $(window).bind("resize", resizeWindow);
     
     function resizeWindow( e ) {
     alert('Handler for .click() called.');



    };






 

Anyone got any ideas, search loads and can't seem to find anything. It can be done can't it?

Thanks in advance

Ben