Recently, I have been reading Article You can often see the link "Click here to copy the article to the Clipboard" and "Click here to copy the link to the Clipboard". After reading it, it is very interesting. View Source has studied it, the discovery is a small JS Code But it is really useful.
If (OBJ! = NULL)
{
VaR RNG = Document. Body. createTextRange ();
RNG. movetoelementtext (OBJ );
RNG. scrollintoview ();
RNG. Select ();
Rng.exe ccommand ("copy ");
RNG. Collapse (false );
} 'Pop = ">-click here to copy to the clipboard-<" style = "cursor: hand; color: Blue; text-align: Left; text-Decoration: underline "> [copy to clipboard]
<Div Title = ">-click here to copy to the clipboard-<" onclick = "Var OBJ = Document. getelementbyid (" kanshangren "); <br/> If (OBJ! = NULL) <br/>{< br/> var RNG = document. body. createTextRange (); <br/> RNG. movetoelementtext (OBJ); <br/> RNG. scrollintoview (); <br/> RNG. select (); <br/> rng.exe ccommand ("copy"); <br/> RNG. collapse (false); <br/>} "style =" cursor: hand; color: Blue; text-align: Left; text-Decoration: underline "> [copy to clipboard] </div>