call javascript function from anchor html tag

后端 未结 1 800
执念已碎
执念已碎 2021-02-05 01:48

I need to display message when the user clicks link

How can I implement something where once the user click the hyper link on Page1, a \"processing...\" message and then

相关标签:
1条回答
  • 2021-02-05 02:23

    You can use either

    <a href="javascript:someFunction()">LINK</a>
    

    or

    <a href="#" onclick="someFunction(); return false;">LINK</a>
    

    or you can check this link. anchor tag onclick function

    0 讨论(0)
提交回复
热议问题