Scroll position

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Phillip Parr

    Scroll position

    Hey peeps, I'm trying to get a webpage open and start scrolled fully to the
    bottom. How should I go about this?

    Thanks!


  • RobG

    #2
    Re: Scroll position

    Phillip Parr wrote:
    [color=blue]
    > Hey peeps, I'm trying to get a webpage open and start scrolled fully to the
    > bottom. How should I go about this?[/color]

    Two ways:

    1. Put an anchor at the bottom and include it in the URI
    for the page, e.g. http://<someURI>/page.html#end

    2. Use an onload function that includes a window.scrollBy ()
    with a very large number (say 100000).

    Method 1. is greatly preferred as window.scrollBy () is
    legacy and not part of current spec.

    Rob.

    Comment

    • Phillip Parr

      #3
      Re: Scroll position

      Now why didn't I think of that...

      Thanks!

      "RobG" <rgqld@iinet.ne t.auau> wrote in message
      news:jn16d.1398 $aA.51501@news. optus.net.au...[color=blue]
      > Phillip Parr wrote:
      >[color=green]
      >> Hey peeps, I'm trying to get a webpage open and start scrolled fully to
      >> the bottom. How should I go about this?[/color]
      >
      > Two ways:
      >
      > 1. Put an anchor at the bottom and include it in the URI
      > for the page, e.g. http://<someURI>/page.html#end
      >
      > 2. Use an onload function that includes a window.scrollBy ()
      > with a very large number (say 100000).
      >
      > Method 1. is greatly preferred as window.scrollBy () is
      > legacy and not part of current spec.
      >
      > Rob.[/color]


      Comment

      • Dr John Stockton

        #4
        Re: Scroll position

        JRS: In article <jn16d.1398$aA. 51501@news.optu s.net.au>, dated Mon, 27
        Sep 2004 23:29:19, seen in news:comp.lang. javascript, RobG
        <rgqld@iinet.ne t.auau> posted :[color=blue]
        >Phillip Parr wrote:
        >[color=green]
        >> Hey peeps, I'm trying to get a webpage open and start scrolled fully to the
        >> bottom. How should I go about this?[/color]
        >
        > Two ways:
        >
        > 1. Put an anchor at the bottom and include it in the URI
        > for the page, e.g. http://<someURI>/page.html#end
        >
        > 2. Use an onload function that includes a window.scrollBy ()
        > with a very large number (say 100000).[/color]

        3?. Execute something like location.href=" #end", but only after
        reaching #end ???

        --
        © John Stockton, Surrey, UK. ?@merlyn.demon. co.uk DOS 3.3, 6.20; Win98. ©
        Web <URL:http://www.merlyn.demo n.co.uk/> - FAQqish topics, acronyms & links.
        PAS EXE TXT ZIP via <URL:http://www.merlyn.demo n.co.uk/programs/00index.htm>
        My DOS <URL:http://www.merlyn.demo n.co.uk/batfiles.htm> - also batprogs.htm.

        Comment

        Working...