Automatic scrolling after refreshing

Discussion in 'Programming' started by anitha_bingo, Nov 28, 2007.

  1. #1
    its an automatic refresh .

    here's the script that i use for automatic refreshing :

    <script type="text/javascript">

    function reFresh() {
    location.reload(true)
    }
    window.setInterval("reFresh()",3000);
    </script>
    i'm doing a public chat project :i use frameset and called the following webpage user.aspx,type_message.aspx,message.aspx
    in user.aspx -shows the number of online user's in the chat room
    type_message.aspx-here the user types his messages here
    message.aspx-in message.aspx,i use automatic refreshing and need this page to scroll automatically as soon as i enter the text message .this page displays the chat message in public .....
    everything is working fine except scrolling
    As it is refreshing after each 3000 millisec the scroller goes to the top of the page
    i need the scroller to be at the bottom of the page
    can anyone help me
    thanks
     
    anitha_bingo, Nov 28, 2007 IP
  2. NoelWalters

    NoelWalters Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    search google for javascript function "scrollIntoView"
     
    NoelWalters, Nov 28, 2007 IP