Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

onclick a hyperlink and display the id of clicked hyperlink js

<a href="" type="button" onclick="myFunction(this.id)" id="One">Click</a>

<script>
  function myFunction(a){
		alert(a);
	}
</script>
 
PREVIOUS NEXT
Tagged: #onclick #hyperlink #display #id #clicked #hyperlink #js
ADD COMMENT
Topic
Name
2+2 =