자바스크립트로 클립보드에 복사하기
컨텐츠 정보
- 21,941 조회
 - 3 추천
 - 목록
 
본문
				소스
function copyit(theField) {
var tempval=eval("document."+theField)
tempval.focus()
tempval.select()
therange=tempval.createTextRange()
therange.execCommand("Copy")
}
---------------------------------------------
function selectall(s){
var doc = document.body.createTextRange();
doc.moveToElementText(document.all(s));
doc.select();
doc.execCommand('copy');
alert('소스가 저장되었습니다.\\n원하는곳에 붙여넣기를 하세요.');
}
			
					function copyit(theField) {
var tempval=eval("document."+theField)
tempval.focus()
tempval.select()
therange=tempval.createTextRange()
therange.execCommand("Copy")
}
---------------------------------------------
function selectall(s){
var doc = document.body.createTextRange();
doc.moveToElementText(document.all(s));
doc.select();
doc.execCommand('copy');
alert('소스가 저장되었습니다.\\n원하는곳에 붙여넣기를 하세요.');
}
관련자료
			댓글 0
					
			
				등록된 댓글이 없습니다.