How To Hide Anchor Tag From URL
How can I hide the hash value from the following link href in the address bar? So it'll redirect me to a the index.php#dev_name, but I want the
Solution 1:
You can use a Javascript onclick event. The browser will still show index.php
, but the onclick event will trigger first, and redirect the browser to the right page.
<a href="index.php" onclick="location.redirect('index.php#dev');">
Post a Comment for "How To Hide Anchor Tag From URL"