SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict
    Join Date
    May 2006
    Posts
    349
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    need page refresh location help please

    Hello, need some javascript that when a page is refreshed, the page will appear in the browser in a certain location down the page. Trouble is a php text link is being clicked on which causes the page refresh. Anyone know a way to show a page location after a page refresh with javascript? Please let me know, thank you very much.

  2. #2
    I meant that to happen silver trophybronze trophy Raffles's Avatar
    Join Date
    Sep 2005
    Location
    Tanzania
    Posts
    4,662
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I'm not sure what you mean. I assume you mean you want the page to appear like the user has already scrolled down a certain distance down the page. For example, this link will take you halfway down the page. To do that, you need to make your link like this:
    Code:
    <a href="#somewhere">Go somewhere</a>
    Where "somewhere" refers to the ID of some element, e.g.:
    Code:
    <h2 id="somewhere">Somewhere</h2>
    If you don't mean this, please try to explain a bit better.

  3. #3
    SitePoint Addict
    Join Date
    May 2006
    Posts
    349
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks that helped a lot, gave me a couple of different ideas.


Bookmarks

Posting Permissions

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