Snap Builder Public Codes Library
Snap | Generators | Login | Browse | Search | Enter Code | Export Snap Builder Public Codes Library

 

Category: Javascript Codes Library >> Miscellaneous Snippets >> Select All Textarea Box


Code Snippet </> Info


Snippet Name: Select All Textarea Box

Description: Simply click a link to select & highlight all items in a textarea box for copying purposes.


Compatible Browsers:
Chrome BrowserFirefox BrowserInternet Explorer BrowserOpera BrowserSafari Browser


Note:

Author: SnapBuilder <snippets@snapbuilder.com>

Last Modified: 2015-08-26 23:24:25

Language: javascript

Highlight Mode: javascript

Copy Codes: Use Free Notepad ++
Bookmark and Share

Snap HTML Code Editor:
Paste the source code, make changes and instantly see it in live preview.
Snap HTML Code Editor


  About Copying

<html> <head> <title>Select All Textarea Box</title> <script> <!-- /* Begin Select All Textarea Box == This Script Free To Use Providing This Notice Remains == == This Script Has Been Found In The http://snapbuilder.com Free Public Codes Library == == NOTICE: Though This Material May Have Been In A Public Depository, Certain Author Copyright Restrictions May Apply == */ function selectAll(theField) { var tempval=eval("document."+theField) tempval.focus() tempval.select() } //--> </script> </head> <body> <form name="highlight"> <a href="javascript:selectAll('highlight.snapselect')">Select All</a><br /> <textarea name="snapselect" rows="6" cols="26">This is just some rambling text placed here to provide enough text for this codes demonstration purpose.


[ Snippet Options ]

 

© 2002 -  Snap Builder Public Codes Library