Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Nov 2002
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    cross brower window.screen

    var res = window.screen.width + "," + window.screen.height;
    var maxres = window.screen.availWidth + "," + window.screen.availHeight;

    how would i create a similar line of code that works for not only i.e. but netscape and other browsers as well

  • #2
    New Coder
    Join Date
    Nov 2002
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts
    maybe a website to help me find out?

  • #3
    Regular Coder
    Join Date
    Sep 2002
    Location
    self.location
    Posts
    181
    Thanks
    0
    Thanked 0 Times in 0 Posts
    audiophan, Netscape does respond to the properties you've mentioned (so does Opera, etc).

    What problems are you having?

  • #4
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    Don't use the window.screen reference. Just use screen.width and screen.height. I've never had any problems with those properties before.

  • #5
    New Coder
    Join Date
    Nov 2002
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by realisis
    audiophan, Netscape does respond to the properties you've mentioned (so does Opera, etc).

    What problems are you having?
    i thought so. i had a problem posted in another thread to which the answer was netscape doesn't like the specified j/s. so i reposted on how to fix it.

    however i found the problem to be with a hidden style.

    thanks though~!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •