With this you create a trigger the moment the button has been clicked it will trigger a specific function. With a click on the a href ... ... <看更多>
html onclick href 在 Is it better to put the action in the href or in an onclick event? 的推薦與評價
You shouldn't be putting JavaScript inline at all. Keep it out of HTML, it doesn't belong there. – zzzzBov. Feb 4, 2013 at 3:15. ... <看更多>
html onclick href 在 How do I create an HTML button that acts like a link? 的推薦與評價
... <看更多>