dcsimg
www.webdeveloper.com
Results 1 to 4 of 4

Thread: Controlling the location of the scroll bar

  1. #1
    Join Date
    Aug 2009
    Posts
    2

    Controlling the location of the scroll bar

    On my website is it possible so that when it loads, the page is automatically scrolled down to the bottom of the page? Thank you.





    Erik

  2. #2
    Join Date
    Aug 2009
    Posts
    37
    have you tryed - window.scrollTo(val,val); entering the scroll offset in place of the val..

  3. #3
    Join Date
    Aug 2009
    Posts
    2

    Smile Thanks

    thanks, i havent tried that yet but i will. heres how i would use it:



    HTML Code:
    <head>
    <script type="text/javascript">
    onload="window.scrollTo(val,val);"
    </script>
    </head>

    i hope it works! thanks.

  4. #4
    Join Date
    Aug 2009
    Posts
    37
    try replacing the val with

    document.body.offsetHeight or something like that.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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



Recent Articles