Access the answers to your technology questions today.
Subscribe Now
30-day free trial. Register in 60 seconds.
What Makes Experts Exchange Unique?
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.
Try it out and discover for yourself.
Subscribe Now
30-day free trial. Register in 60 seconds.
Join the Community
Give a Little. Get a Lot.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Join the Community
by: PeterCNPosted on 2004-08-31 at 00:58:34ID: 11939648
It seems a bit unlikely to me that a user will change his or her resolution during a visit on any site. Or ever for that matter. Why change it when it's ok?
on()', 1000)
You could use a timeout or interval to look at the screen.width (and screen.height) properties. Store them in a var onload, and use the stored values as a reference when checking in the timeout function. So yes, it's possible, but again, it seems a bit useless to me.
demo:
<html>
<head>
<script type="text/javascript">
window.onload = function() {
screenWidth = screen.width;
setInterval('checkResoluti
}
function checkResolution() {
if(screenWidth != screen.width) {
alert('user changed resolution!');
screenWidth = screen.width;
}
}
</script>
</head>
<body>
</body>
</html>