IE JS Code:
نسخة الكود كما يلي:
<script type = "text/javaScript">
وظيفة copyurl2 ()
{
var url2 = document.getElementById ("biao1") ؛
url2.select () ؛
document.execcommand ("نسخ") ؛
تنبيه ("نسخة ، يمكن لصقها.") ؛
}
</script>
<textarea cols = "20" rows = "10" id = "biao1"> منطقة الكود المعرفة من قبل المستخدم </textarea>
<type type = "button" onClick = "copyurl2 ()" value = "انقر لنسخ الرمز" />
رمز Chrome JS:
نسخة الكود كما يلي:
<script src = "http://www.weicaiyun.com/assets/js/copy/zeroclipboard.js"> </script>
<script type = "text/javaScript">
var clip = new Zeroclipboard.client () ؛
Clip.SethandCursor (True) ؛
clip.settext ('copy content') ؛
clip.glue ('button') ؛
</script>
<type type = "button" id = "button" value = "انقر لنسخ الكود" />