Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: Monitor size


Message #1 by "Joshua A Ballew" <jaballew@h...> on Tue, 16 Oct 2001 16:39:44
 user the screen.width and screen.height function 
for example:
<script>
if(screen.width==800 && screen.height==600)
{
 location.href='home.html'
}
if(screen.width==720 && screen.height==1024)
{location.href='corgall.html'}
</script>


 

 
  Joshua A Ballew <jaballew@h...> wrote:
I am looking for a script that can determine the montior size and then 
goto a pages.

for example.

if monitor is 600 x 800 goto home.htm
or if monitor is 1024 x 720 goto home2.htm

is there a code like or similar to what i need
Thank you


  Return to Index