Answers for "javascript when button clicked"

4

javascript onclick

document.getElementById("Save").onclick = function ()
    {
     alert("hello");
     //validation code to see State field is mandatory.  
    }
Posted by: Guest on September-08-2020
1

html javascript button click

<button onClick="alert('some thing to say');">click</button>
Posted by: Guest on August-24-2021
1

element clicked js

document.addEventListener('click', function(e) {
    e = e || window.event;
    var target = e.target || e.srcElement,
        text = target.textContent || target.innerText;   
}, false);
Posted by: Guest on May-13-2020
0

javascript clicked anything

window.addEventListener("click", function(event) {
});
Posted by: Guest on September-17-2021

Code answers related to "javascript when button clicked"

Code answers related to "Javascript"

Browse Popular Code Answers by Language