Archived topic
Navigate between anchors without adding # to the URL
1 reply · Started by Tesco on June 30, 2021
Viewing posts 1–2 of 2
Hi,
How can I navigate between anchors without adding # to the URL?
Example:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head></head>
<body>
<div id="top">This is the top div</div>
<a class="float-right" href="#reg_form_div">Click here to go to Registration Form</a>
<div id="reg_form_div">Registration form here</div>
<a class="float-right" href="#go_to_top">Click here to go to the top</a>
</body>
</html>
Hi there,
that would require Javascript to create your own scrollTo function. Unfortunately its not something i have in my snippet collection. You may find some answers on stackexchange.
This archived topic is closed to new replies.