Answers for "on click on intput tag"

7

onclick a tag

<a href='http://www.google.com' onclick='return check()'>check</a>

<script type='text/javascript'>
function check() {
    return false;
}
</script>
Posted by: Guest on March-05-2020
9

javascript button

<button onclick="Function()">Text</button>
Posted by: Guest on May-10-2020
13

javascript onclick

var myElem = document.getElementByID('ElemID');
myElem.onclick = function() {
	//do stuff
}
Posted by: Guest on February-10-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language