Select Textarea Content

 
 
Click to Select
 
 

Put this code into your page:

<html>
<head>

<style>
.text
{
FONT: 10pt arial;
}
</style>

<script>
function selectText(){
document.TheForm.TheText.focus();
document.TheForm.TheText.select();
}
</script>

</head>

<body>
<br><br><br>
<center>
<TABLE width="150" border="0" cellpadding="0" cellspacing="0" bgcolor=#F5F4E0>
<tr>
<td colspan=3><img src=images/spacer.gif height=10></td>
</tr>
<tr>
<td><img src=images/spacer.gif width=10></td>
<td bgcolor=white>
<table border=0 cellpadding="0" cellspacing="3">
<tr>
<td valign="top" width=175>

<center><a href="javascript:selectText()" class=text>Click to Select</a></center>

<form NAME="TheForm">
<textarea rows="5" cols="20" NAME="TheText" wrap="on">
This is the text in the textarea. Change it to suit.
</textarea>
</form>

</td>
</tr>
</table>
</td>
<td><img src=images/spacer.gif width=10></td>
</tr>
<tr>
<td colspan=3><img src=images/spacer.gif height=10></td>
</tr>
</table>
</center>

</body>
</html>


Related Articles

  • Php Mailing List with no MySql
    Simple mailing list with admin panel and subscriber unsubscribing function. No MySQL needed.
  • PHP Mail Form Tutorial
    This script is widely used by many sites on the net. PHP provides an easy way to send mail via the function mail().
  • Form Email
    Learn to send mail with the php mail(); function.
  • How to Implement the CAPTCHA with PHP and GD
    This article is a gas, it will show you How to Implement the CAPTCHA with PHP and GD. All the necessary code is laid out nice and neat by the author who has also provided you with helpful graphics to make it easy to understand.
  • PHP Contact Form
    First, lets create the html section. I made a simple form, but it gets the job done. You can customize it if you want, but remember to use the same form variables.
  • Toggle Divs
    I have found a javascript that allows you to toggel a div by the div id, well here it is...
  • Form Mail via CDONTS
    ASP gives you the power to send mail using the CDONTS mail object. This script will send an email from a user to whichever email address you choose...
  • Creating a Shoutbox
    This tutorial - Creating a Shoutbox will keep your interest as well as teach you a great bit of design with all the code you will need right on the page. The author makes it a snap with lots of photos and illustrations.
  • E-mail form using HTML and PHP
    Sometimes its a nice touch to include an e-mail feedback form on your contact page or elsewhere on your web site. Lets create an e-mail form using html and a simple php script to send it along.
  • PHP Feedback Form: Advanced
    The problem with my basic PHP Mail Form tutorial is that it offers no protection from spam and meta tag injection. This is fine if you have a very low-traffic site not listed at major search engines, or have a private website, but bigger sites need more.

Contact Web Design Outsource and get started today

Need Website Designing, Development, Redesigning, Maintenance and SEO services or help growing your company's web presence? Request a free Quote Now.