Note: Only Internet Explorer is supported !!! Implementations in other browsers are too complicated or cannot be implemented at all!
JS:
Function copyToClipboard2 ()
{
If (document. all) {// judge IE
Var e = document. all ("alltext2"). value;
Window. clipboardData. setData ('text', e );
Alert ("Copied successfully, start marketing now to earn money! ");}
Else {
Alert ("your browser does not support clipboard operations. Please copy it by yourself. ");
};
}
Although javascript statements are still used to rewrite jquery, they are very simple .....
$ (Document). ready (function (){
$ (". Vbbt3"). click (function (){
Var AB = $ (this). prev (". copynr"). val ();
If (document. all) {// judge Ie
Window. clipboardData. setData ('text', AB );
Alert ("Copied successfully, start marketing now to earn money! ");
} Else {
Alert ("your browser does not support clipboard operations. Please copy it by yourself. ");
}
});
});