AllExperts > Javascript 
Search      
Javascript
Volunteer
Answers to thousands of questions
 Home · More Javascript Questions · Answer Library  · Encyclopedia ·
More Javascript Answers
Question Library

Ask a question about Javascript
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Randy L. Taylor
Expertise
I can answer advanced questions concerning most aspects of web programming including HTML, DHTML, DOM, JavaScript, Cookies, Internet Explorer, and CSSs. I can answer basic questions concerning XML and ActiveX. I can also answer questions concerning Regular Expressions, logical design algorithms, and Object Oriented Programming.

Experience

Past/Present clients
Upp Business Systems, LLC
Headquarters Standard Systems Group, USAF

 
   

You are here:  Experts > Computing/Technology > Focus on JavaScript > Javascript > Detect Window Resize

Javascript - Detect Window Resize



Follow-Ups to Answer from Expert Randy L. Taylor


Iraj wrote at 2008-05-27 14:29:44
There is a matter of compatibilty, I tested this on IE and Mozilla. It worked fine on IE but it had showed result on mozilla so you have to play around with it to the it working for both.

After some research i found that this code works on mozilla

window.onresize = resize;

function resize()
{
alert("resize event detected!");
}


phkcorp2005 wrote at 2008-09-25 15:37:11
If you place this script in the then will not work, but if place within the then will work. Did verify both scenarios.



Add to this Answer   Ask a Question


 
User Agreement | Privacy Policy | Kids' Privacy Policy | Help
Copyright  © 2008 About, Inc. AllExperts, AllExperts.com, and About.com are registered trademarks of About, Inc. All rights reserved.