What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-11-11 10:05:18
how to prevent the form from getting automatically submitted javascript
//add event.preventDefault() example, function clickHandler(event){ alert("Hey you clicked the submit button"); event.preventDefault(); } //this will prevent the page from getting automatically refreshed after //the submit button is hit. Add solution -
Javascript 2021-10-09 21:23:03
detect click on link in all places javascript
function clickOrigin(e){ var target = e.target; var tag = []; tag.tagType = target.tagName.toLowerCase(); tag.tagClass = target.className.split(' '); tag.id = target.id; tag.parent = target.parentNode.tagName.toLowerCase(); re... Add solution -
Javascript 2021-09-29 22:07:02
auto clicker on an event tampermonkey
//AUTO CLICKER 1.0 //Created by Catking var button = document.createElement("button"); button.innerHTML = "Start Auto Clicker" var body = document.getElementsByTagName("body")[0]; body.appendChild(button); button.addEventList... Add solution
Best helpers
Ranking is empty