This was the javascript function I went with Stim. I added the code in blue so it would copy the selection to IE's clipboard at the same time:function copySel(tagID){
refNode = document.getElementById(tagID);
if (document.selection) {
var range = document.body.createTextRange();
range.moveToElementText(refNode);
range.select();
range.execCommand("Copy");
} else if (window.getSelection) {
var range = document.createRange();
range.selectNodeContents(refNode);
var selection = window.getSelection();
selection.removeAllRanges();
selection.addRange(range);
}
}
And the button that called the script looked like this:<input type="button" name="selectall" id="btn_selectall" value="Select All / Copy Text (IE Only)" onclick="copySel('funcsubs_desc')">
The 'tagID' is the id I gave the DIV. <div id="funcsubs_desc" class="desc"></div>