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 9 of 9
  1. #1
    Regular Coder
    Join Date
    Mar 2007
    Posts
    357
    Thanks
    46
    Thanked 22 Times in 21 Posts

    Refresh pages scroll back to before

    When I refresh the page on my site, it goes back to the top. How do I make it scroll back down to its previous scroll position. THis is probably a very very basic thing but... hey xD


  • #2
    Banned
    Join Date
    Feb 2008
    Location
    Winnipeg, Canada
    Posts
    396
    Thanks
    0
    Thanked 29 Times in 29 Posts
    You can't get to the exact spot, you can however use an anchor.

    Example:
    Code:
    <a name="spot"></a>
    
    <a href="page.html#spot">Go back to the spot</a>

  • #3
    Regular Coder
    Join Date
    Mar 2007
    Posts
    357
    Thanks
    46
    Thanked 22 Times in 21 Posts
    Uh.... see i have a long page. And I mean when you press F5, I want it to go back down to the last spot it was at. Which it isn't doing. Well wait, it's doing it in IE, and on most windows for firefox. But on my site for firefox. Nope.

  • #4
    Senior Coder jcdevelopment's Avatar
    Join Date
    Oct 2007
    Location
    Cowboy Nation
    Posts
    2,179
    Thanks
    174
    Thanked 257 Times in 257 Posts
    i thought that it was a browser thing!! When i refresh a page it automatically goes back to where the position was when i refreshed it, i dont think i have seen one page that doesnt do it. Which browser are you useing??

  • #5
    Banned
    Join Date
    Feb 2008
    Location
    Winnipeg, Canada
    Posts
    396
    Thanks
    0
    Thanked 29 Times in 29 Posts
    It is a browser thing, however if your page loads slowly then it takes a while to do it - and usually people don't like to wait.

    Use anchors or scrap this idea.

  • #6
    Senior Coder jcdevelopment's Avatar
    Join Date
    Oct 2007
    Location
    Cowboy Nation
    Posts
    2,179
    Thanks
    174
    Thanked 257 Times in 257 Posts
    yeah, your best bet is to make an anchor and create a button, although i created a function in javascript that saves a working form for my companies website. The form is extremely long and when they need to walk away from it all they do is validate it, save and when they come back to the page it saves the anchor.

    Of course that get into php and javascript and its alot of code, so i would just rely on the whole browser thing!!

  • #7
    Regular Coder
    Join Date
    Mar 2007
    Posts
    357
    Thanks
    46
    Thanked 22 Times in 21 Posts
    Hmm, i'm kindof confused. But in reply to speed, its a 100mbit server. Theres no chance it's slow.

    neetlife.co.uk

    Try it yourself. If it works for you, then i'm going to go reinstall firefox.

  • #8
    Senior Coder jcdevelopment's Avatar
    Join Date
    Oct 2007
    Location
    Cowboy Nation
    Posts
    2,179
    Thanks
    174
    Thanked 257 Times in 257 Posts
    worked just fine, it may be the browser!!

  • #9
    Regular Coder
    Join Date
    Mar 2007
    Posts
    357
    Thanks
    46
    Thanked 22 Times in 21 Posts
    Aw that sucks. Ok, time to move on to firefox beta. -.- Was trying to hold out lol.

    Thanks anyway


  •  

    Posting Permissions

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