Fullscreen / redirect
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   andy_barth
Posted On:   Monday, April 5, 2004 07:48 PM

I need a script that will detect the users screen resolution (in my case 800,1024,1600) and redirect them to the appropriate page(800.html,1024.html,1600.html) and have the new page open in fullscreen mode without scrollbars.

any help would be great. I have spent many hours searching and have found individule scripts that do this but not one single one.

Re: Fullscreen / redirect

Posted By:   oded_peer  
Posted On:   Thursday, April 15, 2004 02:56 PM

You can use (example):



alert(window.screen.width + " / " + window.screen.height);

if (window.screen.width=="1024")

window.location.replace("about:blank");



Use replace and do not change the location.href directly since that approach changes the history object of the browser. replace does not change that object.
About | Sitemap | Contact