ℹ️ For Any Element
Applicable for input
and textarea
elements.
Also general DOM elements:
div
p
blockquote
span
strong
em
- Et cetera.
🧑💻 Snippet
Selection Method
The selection methods are differentiated to accommodate different types of DOM element.
input
and textarea
It is from this part of the script:
HTMLInputElement
=input
element.HTMLTextAreaElement
=textarea
element.
General DOM Elements
From this part of the script:
Copy Method
This function uses Clipboard API as the substitute for the deprecated document.execCommand()
method.
This part of the script:
Thank you for visiting. Until next time. 🫡
Comments
Post a Comment