View Full Version : Help with FireFox's onresize event

02-07-2009, 04:18 PM
OK, I'm trying to get Firefox to refresh the page on a resize. I added a onresize statement to the body as follows:

<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 (http://www.houseviewonline.com/default2.asp).

For those of you who think you may recognize this page, I wish to assure you it is only your imagination. :D

02-09-2009, 10:37 AM
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.

02-09-2009, 01:37 PM
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.