Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Refresh page on browser window resize

Posted on 2004-04-06
4
Medium Priority
?
2,216 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 200 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
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…

618 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