0
edits
Changes
no edit summary
==Example Usage==
You can create a [[Read Only
<pre>
<script>
function copyToClipboard(element) {
var $temp = $("<input>");
$("body").append($temp);
$temp.val($(element).text()).select();
document.execCommand("copy");
$temp.remove();
}
</script>
<span id="objEmail"><a href="mailto:@objemail@">@objemail@</a></span>
<a href="#" onclick="copyToClipboard('#objEmail')">(Copy to Clipboard)</a>
</pre>
Clicking on the email address will open a new email with your default email program
Clicking '''Copy to Clipboard''' will copy the email address to your clipboard so you can paste it (Ctrl-V) into your email program etc.
==See Also==
* [[Email Anything - Why]]