<html>
<head>
<script>
function fnc_copy ()
{
var idxs = document.getElementById ("txt1");
idxs.select ();
var clip = idxs.createTextRange ();
clip.execCommand ('copy');
}
function fnc_paste ()
{
/*var idxs = document.getElementById ("txt2");
idxs.select ();
var clip = idxs.createTextRange ();
clip.execCommand ('paste');*/
var txt = window.clipboardData.getData ('Text');
document.frm.txt2.value = txt;
}
</script>
</head>
<body>
<form name = "frm">
<input type = "text" id = "txt1" name = "txt1"><a href = "javascript:fnc_copy ();">[복사]</a>
<input type = "text" id = "txt2" name = "txt2"><a href = "javascript:fnc_paste ();">[붙여넣기]</a>
</form>
</body>
</html>
<head>
<script>
function fnc_copy ()
{
var idxs = document.getElementById ("txt1");
idxs.select ();
var clip = idxs.createTextRange ();
clip.execCommand ('copy');
}
function fnc_paste ()
{
/*var idxs = document.getElementById ("txt2");
idxs.select ();
var clip = idxs.createTextRange ();
clip.execCommand ('paste');*/
var txt = window.clipboardData.getData ('Text');
document.frm.txt2.value = txt;
}
</script>
</head>
<body>
<form name = "frm">
<input type = "text" id = "txt1" name = "txt1"><a href = "javascript:fnc_copy ();">[복사]</a>
<input type = "text" id = "txt2" name = "txt2"><a href = "javascript:fnc_paste ();">[붙여넣기]</a>
</form>
</body>
</html>
Trackback URL : http://www.ishappy.net/tc/trackback/26


당신의 의견을 작성해 주세요.