<script language = 'Javascript'>
function Copy2Clipboard()
{
window.clipboardData.setData("Text", document.getElementById('txt').value);
}
function GetFromClipboard()
{
document.getElementById('txt').value = window.clipboardData.getData("Text");
}
</script>
<input id = 'txt' name = 'txt'>
<input type = 'button' onclick = "Copy2Clipboard()" value = "Copy2Clipboard" />
<input type = 'button' onclick = "GetFromClipboard()" value = "GetFromClipboard" />
No comments:
Post a Comment