I know this function:
document.addEventListener(\'touchstart\', function(event) {
alert(event.touches.length);
}, false);
But is it possibl
Of course, let's assume you have to insert text in h1 element when a user clicks on the button. It's pretty easy to bind HTML's specific element to addEventListener() method
document.getElementById("button").addEventListener("click", function(){
document.getElementById("name").innerHTML = "Hello World!";
});