Recently, I encountered a need to copy or cut elements like input fields and buttons in a web page while developing. Here, I use JavaScript to find the web page elements to be copied (elements), use node.cloneNode(deep) to copy the elements, and use element.insertAdjacentHTML to place the elements in a specified location.