Just put the content you want to select and copy into a <span> or other container, and then set the Contenteditable= "true" property of span. The complete code is as follows:
<span id= "MySpan" name= "MySpan" contenteditable= "true" >
What you want to select and copy
</span>
can also use JS to achieve,
document.all["LAB1"].contenteditable = "True";
or using jquery to implement
$ ("Body"). attr ("contenteditable", "True");
Note that this method makes the content editable ...
--------------------------------------------------------------------------
Other implementation methods:
1, change the way, with window.open to achieve
2, plain words can be used without a border-only read-only textarea text box (that is, the textbox is set to ReadOnly, but not disabled, so you can guarantee the right mouse button menu)
3, with the DIV simulation
4, div simulation content with an IFRAME nested other pages
5, with the JS event, double-click to copy to the Clipboard