navigate to a linked target on html page without page refresh

how do I navigate to a <a> linked target on html page without having to reload php generated content. if I click on a link to a target such as 'Top of Page', it refreshes to entire page content.
Who is Participating?
Robert SchuttConnect With a Mentor Software EngineerCommented:
For this usually a hash sign is used:
<a href="#">Top of Page</a>

Open in new window

Any element with an id can be targeted with
<a href="#someid">Go to ID</a>

There are a whole range of effects using targets

Robert SchuttSoftware EngineerCommented:
You can add target id's to your page, making it possible to link to different sections, or have it done automatically:
mmarthAuthor Commented:
my problem was that i was creating a php button which had a submit as the link. thanks
Robert SchuttSoftware EngineerCommented:
Hmm, not sure how my solution helped you in that case. I assume you just made sure the "#someid" was included in the action url or redirected url from that action page.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.