Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jul 2005
    Location
    detroit area
    Posts
    75
    Thanks
    0
    Thanked 0 Times in 0 Posts

    automatic move to bottom on refresh

    i have a page that is in an iframe that is refreshed every 5 seconds. i want this page to automatically go to the bottom of the page every refresh. i tried anchors but i couldnt get it to work. what is the normal way to do this?

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Add this to the body tag of the page being iframed in.
    Code:
     onload="window.scrollTo(0,document['body'].offsetHeight)"

  • #3
    New Coder
    Join Date
    Jul 2005
    Location
    detroit area
    Posts
    75
    Thanks
    0
    Thanked 0 Times in 0 Posts
    awesome thanks, that worked beautifully.


  •  

    Posting Permissions

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