Search
 
SCRIPT & CODE EXAMPLE
 

HTML

select all text in textarea javascript

<textarea onclick="this.focus();this.select()"></textarea>

<!-- To copy the text -->
<textarea onclick="this.focus();this.select();document.execCommand('copy')"></textarea>
Comment

PREVIOUS NEXT
Code Example
Html :: html track 
Html :: city of hamilton 
Html :: html radio group 
Html :: css mark color 
Html :: on this image error 
Html :: react native text max rows 
Html :: svelte comments 
Html :: html 5 
Html :: tailwind css dropdown 
Html :: bootstrap buttons Disabled state 
Html :: tailwind ul list type 
Html :: Drupal twig get value of entity reference field 
Html :: to centre each content in html 
Html :: how to add an html anchor 
Html :: html prevent focus on input 
Html :: how to link a website in html 
Html :: plantuml font size 
Html :: html download file from server to client 
Html :: html table title 
Html :: link to external site html 
Html :: how to add double space in html 
Html :: bootstrap selec 
Html :: html figure 
Html :: markdown to html 
Html :: alt html 
Html :: theme color in html 
Html :: html clickable image 
Html :: how to pass the current url to beautiful soup html 
Html :: date of birth select box in html 
Html :: px in react is different from html file 
ADD CONTENT
Topic
Content
Source link
Name
9+8 =