Your Best Hosting
Solution

Keeping it Simple


  Main Menu
     Home Page
     About Us
     Hosting Plans
     Register Domains
     The Good Stuff
     Member Area
     Support Ticket
  Free Extras
     Free Domain Name
     RVSiteBuilder
     WebTraxEditor
     Tutorials
     And Much More
  Important Information
     90 Day Free Trial
     Our Guarantee
     F A Q
  Contact Information
     Contact Us
     Our Forum
  Site Map
     Site Map

Back to Previous Page






Select and Auto Copy
What it's all about:

With this script you can highlight and copy text in a textarea box with the click of a button. IE only (In Netscape, it only highlights the text; it doesn't copy it.)

How to install this script:
TWO STEPS TO INSTALL SELECT AND AUTO COPY:

1. Copy the coding into the HEAD of your HTML document
2. Add the last code into the BODY of your HTML document

STEP ONE: Paste this code into the HEAD of your HTML document

<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<!-- Original: Russ (NewXS3@aol.com) -->
<!-- Web Site: http://dblast.cjb.net -->

<!-- Begin
function copyit(theField) {
var tempval=eval("document."+theField)
tempval.focus()
tempval.select()
therange=tempval.createTextRange()
therange.execCommand("Copy")
}
// End -->
</script>

</HEAD>

STEP TWO: Copy this code into the BODY of your HTML document

<BODY>

<form name="it">
<div align="center">
<input onclick="copyit('it.select1')" type="button" value="Press to Copy the Text" name="cpy"> <p> <textarea name="select1" rows="3" cols="25"> If this is highlighted, then it has been copied. </textarea> </div> </form>