Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript clone element

const target = document.querySelector('div');
const clonedTarget = target.cloneNode();
Source by www.javascripttutorial.net #
 
PREVIOUS NEXT
Tagged: #javascript #clone #element
ADD COMMENT
Topic
Name
3+6 =