execCommand

selectAll Text in Javascript

Submitted by GeePee on
This project will teach you how to create a selectAll text in a div using javascript. With this method, the user can easily copy all of the content on the selected div specially large amount of content. It has only few lines of codes in javascript using execCommand method. Don't forget also to set to true the div contenteditable event. Hope you learn from this.