This goes in the <head> section...
Code:
<script language="Javascript">
<!--
function selectAll(theField) {
var tempval=eval("document."+theField)
tempval.focus()
tempval.select()
therange=tempval.createTextRange()
therange.execCommand("Copy")
}
//-->
</script>
This is your <body>...
Code:
<form name="form">
<a href="javascript:selectAll('form.area')">Select All</a><br>
<textarea rows="7" cols="48" name="area">text to be selected</textarea></form>
This code will SELECT ALL and COPY in I.E., but will not perform the COPY function in Firefox, the SELECT ALL still works in Firefox.