In order to call javascript inside tag , u can use this approach :
<a onclick="jsfunction()" href="#">
Or
<a onclick="jsfunction()" href="https://stackoverflow.com/questions/36150848/javascript:void(0);">
More Related Contents:
- How to close current tab in a browser window?
- How to change the href attribute for a hyperlink using jQuery
- How do I create a link using javascript?
- Open URL in same window and in same tab
- How to submit a form with JavaScript by clicking a link?
- Link inside a button not working in Firefox
- Is there a way to get a element to link to a location without wrapping it in an
- best tools for theme design? [closed]
- Malicious file?
- Get cursor position (in characters) within a text Input field
- Print the contents of a DIV
- HTML form readonly SELECT tag/input
- Adjust width of input field to its input
- Disable pasting text into HTML form
- Get city name using geolocation [duplicate]
- Download A File At Different Location Using HTML5
- HTML tag want to add both href and onclick working
- cross-domain iframe resize
- Stop User from using “Print Scrn” / “Printscreen” key of the Keyboard for any Web Page
- JavaScript get element by name
- How to use Javascript to read local text file and read line by line?
- Open IE browser in Firefox/Chrome page
- Text wrap in a element
- Set a callback function to a new window in javascript
- How to Disable Copy Paste (Browser)
- How can I use JSON data to populate the options of a select box?
- How to scroll table’s “tbody” independent of “thead”?
- Trigger for span text/html on changed
- How to show fullscreen popup window in javascript?
- trigger file upload dialog using javascript/jquery