Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript button

<script>
function myFunction() {
  var x = document.createElement("BUTTON");
  var t = document.createTextNode("Click me");
  x.appendChild(t);
  document.body.appendChild(x);
}
Source by www.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #javascript #button
ADD COMMENT
Topic
Name
5+2 =