4 lines
156 B
JavaScript
4 lines
156 B
JavaScript
const top_element = document.getElementById("top");
|
|
const copy = top_element.cloneNode(true);
|
|
copy.id = "bottom";
|
|
top_element.parentNode.appendChild(copy);
|