+ 1
How can i create a click event like that of Instagram like font
4 odpowiedzi
+ 3
window.onload = function() {
var item = document.getElementById("item");
item.addEventListener("click", myFunction);
function myFunction() {
alert(Math.random());
}
};
+ 1
How can i create a click event in JavaScript
So when i click on something on my website something happens
0
Can you be more clear?