SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Wizard nofel's Avatar
    Join Date
    Aug 2007
    Location
    Earth
    Posts
    1,766
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    changing default view port for landing page

    Hi,
    I am looking for a functionality to let the website be on a default view port, when landed. like whatever the screen size is. when someone come to website,they should see specific target area. is there any way?
    All those who wander aren't lost.

  2. #2
    padawan silver trophybronze trophy markbrown4's Avatar
    Join Date
    Jul 2006
    Location
    Victoria, Australia
    Posts
    4,108
    Mentioned
    28 Post(s)
    Tagged
    2 Thread(s)
    You want to resize the window?

    No, there isn't a way because it's was abused for a long time and removed from browsers like Firefox.

    You can use document.documentElement.clientHeight and document.documentElement.clientWidth to get the size of the window. But, there's no way to set the browser for all browsers.


Bookmarks

Posting Permissions

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