www.webdeveloper.com
Results 1 to 4 of 4

Thread: auto scrolling

  1. #1
    Join Date
    Jul 2013
    Posts
    21

    auto scrolling

    how would i go about making a function that when called would scroll a div to the bottom ?

  2. #2
    Join Date
    Oct 2010
    Location
    Versailles, France
    Posts
    1,268
    Use the method scrollIntoView() with an element a the bottom of the div.

  3. #3
    Join Date
    Jun 2012
    Posts
    8
    assign the height size for that div

  4. #4
    Join Date
    Jul 2013
    Posts
    21
    ok so what if the div is like a console and i want it to be at the bottom when new content is added ?
    ps sorry i shod of added that in the first place i am making a text game

Thread Information

Users Browsing this Thread

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

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