Javascript Select All Text Form Button Textarea With Java Script Focus()



Javascript Select All Text Form Button Textarea With Java Script Focus()
 (382) Find work at Home Jobs
Javascript Select All Text Form Button Textarea With Java Script Focus()
Post Description:
Post Tags: javascript, select, all, text, form, button, textarea, with, java, script, focus
This Post Has Been Viewed 2155 Times Since Fri Dec 22, 2006 5:53 am Posted By webmaster with 2 replies
Javascript Select All Text Form Button Textarea With Java Script Focus()
have you ever seen those cool tricks on other websites where they have the code and to copy the code they have a submit form so you can hightlight all the text in the text area, well this script below will show you how you can do this. you can learn from this simple code by copy and paste into a text editor link notepad and save it, then upload to your website to see it in action.


     Code:
<html>
<title>Cool Javascript Tricks Select All Code From Textarea Form</title>
<body bgcolor="#FFFFFF">

<center>
<form name="select_all">

<textarea name="text_area" rows="10" cols="80">
Wallpaperama is an amazing collection of High quality, high resolution wallpapers for your computer desktop for free. Download your favorite high resolution wallpaper for free at wallpaperama.com. Our free wallpapers include a large collection of wallpapers for your computer desktop. You will find only free wallpapers, no pop-up ads, no spam, no spyware only high quality free wallpapers for your computer background. Surf with confidence.
</textarea>

<br>
<input type="button" value="Highlight Text" onClick="javascript:this.form.text_area.focus();this.form.text_area.select();">

</form>
</center>

</body>
</html>

Leave Your Comments     [ dejar commentarios ]
  * Name     [nombre]

  * eMail (will not be published)     [coreo electronico]

* Enter Your Reply or Comments:    [commentarios]


Add Picture To Comments         [incluir foto]
YES NO             upload
Receive Replies on my Comments (An email will be sent to you when someone replies to your comments)

     

Comments and replies About Javascript Select All Text Form Button Textarea With Java Script Focus()




:: 1 :: #1285 - Reply By test On Thu Apr 05, 2007 7:36 pm
testing asfsadfs sdfsa sdfas sdf awfwerawe
:: 2 :: #54334 - Reply By ken On Mon May 19, 2008 2:38 am
thank you! its very useful