Mobile app version of vmapp.org
Login or Join
Murray155

: Providing hyperlink in a page to the top of the page with I know I can do this by putting a bookmark at the top but I thought there was another way to do that. I tried just linking

@Murray155

Posted in: #Html

I know I can do this by putting a bookmark at the top but I thought there was another way to do that.

I tried just linking to #top and it worked, but just wondering if there are any problems with that.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Murray155

1 Comments

Sorted by latest first Latest Oldest Best

 

@Harper822

There is no any standard that forbids or penalize links to top, so if you want to create and use such links, just do it.

Make sure to create the anchor though (with adding <a id="top"></a> entry somewhere near the element, you are linking to), otherwise it will just link to nowhere on the page, which most browsers trying to find at the top of page and scrolling viewport to the top.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme