A Slacker's Guide to Dynamic HTML [5k]
DHTML SCRIPTS
Menu/Navigation
Special Effects
Images
Forms
Text/Announcements
Windows/Pop-ups
Clocks/Countdowns
Miscellaneous



Auto Select & Copy


This goes in the HEAD of your document.

Select All & Copy

This goes in the BODY of your document.

Select All

Instructions:

The key to adding the "Highlight" feature to your form elements, as illustrated in the code of Step 2, are:
1) Giving your form a name (ie: <form name="test">
2) Giving the form element in question a name (ie: <textarea name="select1">
3) Adding the <a> code:

<a class="highlighttext" href="javascript:HighlightAll('test.select1')">Select All</a>

directly above the form element, where the part in red references the form, then the element to highlight's name (note the quotation marks around it).



Home - Sitemap
Complete HTML Guide - Free Downloads for Webmasters - Tips & Tricks - Tag Reference
Style Sheets Tutorial - JavaScript Library - Dynamic HTML Script Library - XHTML Primer
dhtml/autoselectncopy.html

BIGGER ARCHIVES
MORE INFO
Everything I am not
http://www.dynamicdrive.com
http://www.dhtmlzone.com
http://www.dhtmlshock.com


Popular Scripts
Find in Page
Let it Snow!
Auto Select & Copy
Announcement Box


Just about every Dynamic HTML script on this site is ©opyright Dynamicdrive.com, DHTML Zone, DHTML Shock, or the person whose name appears in the credits to the script. Let it be known that I wrote NONE of them.