Answers for "make a function create an element javascript"

1

create element in javascript

var para = document.createElement("P");               // Create a <p> element

  para.innerText = "This is a paragraph";               // 
  Insert text
document.body.appendChild(para);                      // Append <p> to <body>
Posted by: Guest on August-25-2021

Code answers related to "make a function create an element javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language