Useful HTML Codes - 73

Türk Bayrağı Ekleme Kodu, Animated and Waving Turkish Flag, Greeting Pictures ...


Textarea Copy to Clipboard


<script language="javascript">

function copy(inElement) {
if (inElement.createTextRange) {
var range = inElement.createTextRange();
if (range)
} else {
var flashcopier = 'flashcopier';
if(!document.getElementById(flashcopier)) {
var divholder = document.createElement('div'); = flashcopier;
document.getElementById(flashcopier).innerHTML = '';
var divinfo = '<embed src="_clipboard.swf" FlashVars="clipboard='+encodeURIComponent(inElement.value)+'" width="0" height="0" type="application/x-shockwave-flash"></embed>';
document.getElementById(flashcopier).innerHTML = divinfo;


<form name="formtocopy" action="" >
<textarea name="texttocopy" disabled="disabled">
A whole bunch of text here that will be copied.
<a href="javascript:copy(document.formtocopy.texttocopy);">Copy the Text!</a>


Close Window

Note: All photographs on this website are copyrighted and may not be copied or imitated in whole or in part. Advertising options are also available and payments can be made via PayPal. For more information, please contact me.