Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

document.append

/*adds  a element directly to the document without needing a parent or 
container*/

let addTag = document.createElement("html")
document.append(addTag)

//or

let addTag2 = document.createElement("p")
document.body.append(addTag2)
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
7+1 =