...

View Full Version : Reload Window when user resizes it



moguai
03-12-2004, 11:17 AM
Hi folks,

I have problems with some js-items on my page: when the user resizes the window, the menubars position is wrong, only after a reload its o.k.!

where can I find a script that reloads the page when the user has resized the browser window?

Thanks a lot!
moguai:)

Spudhead
03-12-2004, 11:43 AM
1. Go to Google.
2. Type the words "javascript", "reload" and "resize".
3. Clicky clicky.

Kor
03-12-2004, 11:52 AM
Try

<body onresize="self.location='the_same_URL'">

moguai
03-12-2004, 12:51 PM
Originally posted by Spudhead
1. Go to Google.
2. Type the words "javascript", "reload" and "resize".
3. Clicky clicky.

is it a stupid question? believe it or not, I COME from Google... :( (and this site here is known to be very good!)

Kor
03-12-2004, 01:08 PM
anyway... you forget to tell us if my advice worked for you...

moguai
03-12-2004, 03:34 PM
Originally posted by Kor
Try

<body onresize="self.location='the_same_URL'">

I tried but it did not work :(
I put this in the head tag <script language="javascript" type="text/javascript"></script>

ok?

Spudhead
03-12-2004, 03:38 PM
ok, a more direct approach:

http://javascript.internet.com/page-details/reload-on-resize.html

or, to make it even more straightforward:

make your <body> tag look like this:

<BODY onResize="window.location.href = window.location.href;">

You don't need anything in the <head>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum