Difference between revisions of "User:Certified nqh/common.js"
| Line 3: | Line 3: | ||
} | } | ||
const why = document.createElement("button"); | const why = document.createElement("button"); | ||
| − | document.body.insertBefore(why, document.getElementById(" | + | document.body.insertBefore(why, document.getElementById("mw_content"); |
why.appendChild(document.createTextNode("PAIN")); | why.appendChild(document.createTextNode("PAIN")); | ||
why.onclick(update); | why.onclick(update); | ||
Latest revision as of 00:05, 10 November 2023
function update(){
alert("AAAAAAAAA");
}
const why = document.createElement("button");
document.body.insertBefore(why, document.getElementById("mw_content");
why.appendChild(document.createTextNode("PAIN"));
why.onclick(update);
