You know that the hover hyperlink displays the URL on the browser’s right bottom corner.
Sometimes we don’t want to display that on the browser so below has a trick that can help you to fix that thing.
to make this possible we need to remove the data in href
, and change it to a javascript onclick
where you set the window.location
to the URL you want.
<a href="https://www.tutorialwala.com">https://www.tutorialwala.com</a>
becomes
<a style="cursor: pointer" onclick="javascript: window.location = 'https://www.tutorialwala.com';">https://www.tutorialwala.com</a>
Hello Friends, I’m Mohit Sharma founder of tutrialwala.com, Full Stack Web Developer. Expertise in WordPress, PHP, Laravel, Angular, and Frontend Development. In this publication, I share everything I know about PHP frameworks and Javascript frameworks, packages, and tools.
Have a project in mind? Get in touch