Jump to content

How to Anchor a page?


fry2010

Recommended Posts

I wondered how to actually anchor a page so that when a user refreshes the page they are taken to exacly the place they was before instead of the top of the page. Scrolling down is a bit annoying, i have seen it on other sites but never knew how to do this....

I think this is a html thing.... help is appreciated.

Link to comment
Share on other sites

Does anyone know how this is done or what i mean?

Ill give an example...

 

Im on the home page. I scroll down all the way to the bottom. I dont click anything, but refresh the page. When I refresh the page I am taken straight back to the bottom of the home page automatically without needing to scroll down. Thanks.

Link to comment
Share on other sites

great thanks for the link. I couldnt find anything.

I cant actually get it to work though. I am placing the code inside <script> tags set to javascript but it doesnt work.

I have also just looked at using the html anchor tags, but I cant get those to work either. I read somewhere it says about using mouse over events such as onmouseover, but how do I get that to work when I refresh the page? any ideas?

Link to comment
Share on other sites

lol, yeah i have it. didt even realise it could correct javascript issues. Good little tool the old firebug.

I think I would like to avoid the javascript one though, I would prefere to use the anchor method. I know its not as specific to where you land on the page as javascript is, but its in the w3c docs. They just dont explain how to use mouse events, like onmouseover. If I can get onmouseover working with anchor that would be great.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.