Or onclick JS
<a href="" onclick="alert('Hello'); return false;"></a>
HTML example code:
href attribute and got the result that I can write multiple lines in it!
Do comment if you have any doubts and suggestions on this JS href code.
Note: The All JS Examples codes are tested on the Firefox browser and the Chrome browser.
OS: Windows 10
Code: HTML 5 Version
Degree in Computer Science and Engineer: App Developer and has multiple Programming languages experience. Enthusiasm for technology & like learning technical.