Home » jQuery » jQuery Smooth Scroll To ID From Another Page

jQuery Smooth Scroll To ID From Another Page

In this article, I show you jQuery smooth scroll to ID from another page. If you are facing a problem with the smooth scroll to ID from another page then here you have a solution to overcome. From a single page smooth scroll you can use like this article, but from a different page to an anchor link, you can match with the location of page targeted ID.

Instead of using a target, we going to use it with the targethash (eg. about.php#mission). Based on the page loads we get the hash from the address bar and matching up target id to smooth scroll. Also code tested in Safari, Firefox, Chrome, Opera, and IE11.

Note: Use the below jQuery CDN before using the script

Conclusion: I hope this will help you to smooth scroll to ID from different pages. If you have any problem with this topic use the comment box to let me know. If you loved this article share it with your friends.

Was this article helpful?

Yes No
×

How can we improve it?

×

We appreciate your helpul feedback!

Your answer will be used to improve our content. The more feedback you give us, the better our pages can be.

Follow us on social media:

Facebook Pinterest

Mraj

Creative Designer & Developer specialist by the spirit and a loving blogger by thoughts.

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top