Difference between revisions of "User:Certified nqh/common.js"

Explain xkcd: It's 'cause you're dumb.
Jump to: navigation, search
Line 1: Line 1:
 +
function update(){
 +
alert("AAAAAAAAA");
 +
}
 
const why = document.createElement("button");
 
const why = document.createElement("button");
 
document.body.insertBefore(why, document.getElementById("mw_header");
 
document.body.insertBefore(why, document.getElementById("mw_header");
 
why.appendChild(document.createTextNode("PAIN"));
 
why.appendChild(document.createTextNode("PAIN"));
function update(){
+
why.onclick(update);
alert("AAAAAAAAA");
 
}
 

Revision as of 00:05, 10 November 2023

function update(){
 alert("AAAAAAAAA");
}
const why = document.createElement("button");
document.body.insertBefore(why, document.getElementById("mw_header");
why.appendChild(document.createTextNode("PAIN"));
why.onclick(update);