Usually, it is common and easy way to use href parameter to add a link on the web page. But I want to know other way so I wanna know about the method to add link not using href parameter.
If it is possible, please give me sample code.
I tried to make a link button not using href parameter. But I couldn’t find out that way.
2
Answers
Using external javascript file
Using inline js
If you want to make a button that acts like a link, make a form and define the link as the form’s action: