 |
|
|  |
ÀÚ¹Ù½ºÅ©¸³Æ®·Î º¹»çÇϱ⠱â´É ±¸ÇöÇϱâ |
|
|
 |
8³â Àü |
<script>
function selectall(s){
var doc = document.body.createTextRange();
doc.moveToElementText(document.all(s));
doc.select();
doc.execCommand('copy');
alert('¼Ò½º°¡ º¹»çµÇ¾ú½À´Ï´Ù.');
}
function selectall2(s){
var doc = document.body.createTextRange();
doc.moveToElementText(document.all(s));
doc.select();
doc.execCommand('select');
alert('¼Ò½º°¡ ¼±ÅõǾú½À´Ï´Ù.');
}
</script>
<a href="javascript:selectall('span')">SPAN ű׾ȿ¡ ÀÖ´Â ÅؽºÆ® º¹»çÇϱâ</a>
<br>
<a href="javascript:selectall('table')">Å×ÀÌºí ¾È¿¡ ÀÖ´Â ÅؽºÆ® º¹»çÇϱâ</a>
<br><br>
<a href="javascript:selectall2('span')">SPAN ű׾ȿ¡ ÀÖ´Â ÅؽºÆ® ¼±ÅÃÇϱâ</a>
<br>
<a href="javascript:selectall2('table')">Å×ÀÌºí ¾È¿¡ ÀÖ´Â ÅؽºÆ® ¼±ÅÃÇϱâ</a>
<br><br>
<!--SPAN ű׿¡ ID¸¦ ÁØ °æ¿ì-->
<span id=span>
SPAN¾ÈÀÇ ÅؽºÆ®°¡ º¹»çµË´Ï´Ù.<br>
SPAN¾ÈÀÇ ÅؽºÆ®°¡ º¹»çµË´Ï´Ù.<br>
SPAN¾ÈÀÇ ÅؽºÆ®°¡ º¹»çµË´Ï´Ù.<br>
SPAN¾ÈÀÇ ÅؽºÆ®°¡ º¹»çµË´Ï´Ù.<br>
</span>
<!--TABLE ű׿¡ ID¸¦ ÁØ °æ¿ì-->
<table id=table border=1>
<tr><td>
Å×À̺í¾È¿¡ ÀÖ´Â ÅؽºÆ®°¡º¹»ç µË´Ï´Ù.<br>
Å×À̺í¾È¿¡ ÀÖ´Â ÅؽºÆ®°¡º¹»ç µË´Ï´Ù.<br>
Å×À̺í¾È¿¡ ÀÖ´Â ÅؽºÆ®°¡º¹»ç µË´Ï´Ù.<br>
Å×À̺í¾È¿¡ ÀÖ´Â ÅؽºÆ®°¡º¹»ç µË´Ï´Ù.<br>
Å×À̺í¾È¿¡ ÀÖ´Â ÅؽºÆ®°¡º¹»ç µË´Ï´Ù.<br>
</td></tr></table> |
|
̵̧ : 332 |
̵̧
¸ñ·Ï
|
|
|  |
|