Solved

Refresh page on browser window resize

Posted on 2004-04-06
4
2,203 Views
Last Modified: 2008-03-17
I'd like to make a javascript which refreshes the page on browser window resize. I'm just wondering how I capture the browsers resize event?

Thanks in advance!
0
Comment
Question by:mrfjacobs
  • 3
4 Comments
 
LVL 16

Expert Comment

by:jaysolomon
ID: 10769417
window.onresize = function() {
      window.location.reload();
}
0
 
LVL 16

Accepted Solution

by:
jaysolomon earned 50 total points
ID: 10769423
that goes between the head section

<head>
<script>
window.onresize = function() {
     window.location.reload();
}
</script>
</head>
0
 

Author Comment

by:mrfjacobs
ID: 10769453
great! works perfectly :)
0
 
LVL 16

Expert Comment

by:jaysolomon
ID: 10769482
Glad to have helped and thanks for the  A
jAy
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

When you need to keep track of a simple list of numbers or strings, the Array object is your most direct tool.  As we saw in my earlier EE Article (http://www.experts-exchange.com/A_3488.html), typical array handling might look like this: (CODE) B…
This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now