| Learn | HTML - Anchors and Hyperlinks - Link that runs javascript |
|---|
| Link that runs JavaScript Simply use the You can also achieve the same thing using the The Also noteworthy, you can include an exclamation mark Should you be using any of this?
The answer is almost certainly no. Running JavaScript inline with the element like this is fairly bad practice. Consider using pure JavaScript solutions that look for the element in the page and bind a function to it instead. Listening for an event (opens new window)
Also consider whether this element is really a button instead of a link. If so, you should use |
Read Article
https://develop.horje.com/learn/1434/reference