모바일 폰에서 접속 했을 때 복사하기 버튼 붙여넣기 버튼이 필요한데
모바일로 모바일 페이지로 접속 후에 아래처럼 해보면 PC에서는 되지만
모바일 폰에서는 안되네요.. 혹시 모바일에서도 복사 붙여넣기 기능이 먹히는
소스 알고 계신분 계신가요? ㅠㅠ
Copy
<script type="text/JavaScript">function text_copy(){ var doc = document.body.createTextRange(); doc.moveToElementText(document.all("pagelink")); doc.select(); doc.execCommand('copy'); alert('소스가 저장되었습니다. 붙여넣기 하시면 됩니다.');}</script> <textarea name="pagelink" cols="70" rows="1" id="pagelink">이글이 복사됩니다</textarea><input name="button" type="button" onclick="text_copy();" value="복사하기">
|
답변 2개
채택된 답변
+20 포인트
답변을 작성하려면 로그인이 필요합니다.