SHARE
TWEET

Untitled

a guest Jun 27th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         //button für späteren Vergleich der Antworten und Lösungen erstellt
  2.         var button = document.createElement("input");
  3.         var buttonType = document.createAttribute("type");
  4.         buttonType.value = "submit";
  5.         var buttonValue = document.createAttribute("value");
  6.         buttonValue.value = "click";
  7.         var buttonID = document.createAttribute("id");
  8.         buttonID.value = "sub";
  9.         button.setAttributeNode(buttonID);
  10.         button.setAttributeNode(buttonType);
  11.         button.setAttributeNode(buttonValue);
  12.         document.body.appendChild(button);
  13.         var button2 = document.getElementById("sub");
  14.         button2.addEventListener("click", function() {
  15.             alert("Leider zu spät angefangen :(");
  16.         });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top