COMING SOON 🚀

모바일 OS에서 자바스크립트 select() 구현하기 입니다.

· 10년 전 · 1294

<textarea id="idText">
Hello Apple!
Hello Android!
</textarea>

<script language="javascript" type="text/javascript">
var Mobile="";
var sUsrAgt=navigator.userAgent;

if((/iPhone/i.test(sUsrAgt)) || (/iPod/i.test(sUsrAgt))) Mobile="IP";
else if((/series60/i.test(sUsrAgt)) || (/symbian/i.test(sUsrAgt))) Mobile="SY";
else if(/iPad/i.test(sUsrAgt)) Mobile="IA";
else if(/android/i.test(sUsrAgt)) Mobile="AN";
else if(/windows ce/i.test(sUsrAgt)) Mobile="WM";
else if(/blackberry/i.test(sUsrAgt)) Mobile="BB";
else if(/palm/i.test(sUsrAgt)) Mobile="PM";
else if(/Kindle/i.test(sUsrAgt)) Mobile="KD";

var oTextArea=document.getElementById("idText");

function selectMobile() {
oTextArea.setSelectionRange(0, 9999);
}

function selectAll()
{
if (Mobile) {
oTextArea.focus();
setTimeout("selectMobile()",1234);
}
else {
oTextArea.select();
}
}

selectAll();

</script>

|
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

+
제목 글쓴이 날짜 조회
10년 전 조회 1,237
10년 전 조회 1,198
10년 전 조회 1,209
10년 전 조회 1,226
10년 전 조회 1,284
10년 전 조회 1,199
10년 전 조회 1,435
10년 전 조회 1,590
10년 전 조회 1,491
10년 전 조회 1,241
10년 전 조회 1,247
10년 전 조회 1,199
10년 전 조회 1,197
10년 전 조회 1,313
10년 전 조회 1,242
10년 전 조회 1,180
10년 전 조회 1,242
10년 전 조회 1,594
10년 전 조회 2,054
10년 전 조회 1,629
10년 전 조회 1,453
10년 전 조회 1,416
10년 전 조회 1,264
10년 전 조회 1,255
10년 전 조회 1,269
10년 전 조회 1,234
10년 전 조회 1,241
10년 전 조회 1,274
10년 전 조회 1,428
10년 전 조회 1,342
10년 전 조회 2,065
10년 전 조회 1,599
10년 전 조회 1,346
10년 전 조회 1,432
10년 전 조회 1,692
10년 전 조회 1,364
10년 전 조회 1,538
10년 전 조회 1,380
10년 전 조회 1,487
10년 전 조회 1,333
10년 전 조회 1,301
10년 전 조회 1,297
10년 전 조회 1,325
10년 전 조회 1,335
10년 전 조회 1,363
10년 전 조회 1,387
10년 전 조회 1,362
10년 전 조회 1,516
10년 전 조회 1,508
10년 전 조회 1,295
10년 전 조회 1,588
10년 전 조회 1,949
10년 전 조회 1,384
10년 전 조회 1,651
10년 전 조회 1,607
10년 전 조회 1,461
10년 전 조회 1,414
10년 전 조회 1,374
10년 전 조회 1,500
10년 전 조회 1,239
10년 전 조회 1,310
10년 전 조회 1,535
10년 전 조회 1,360
10년 전 조회 1,350
10년 전 조회 1,311
10년 전 조회 1,335
10년 전 조회 1,325
10년 전 조회 1,327
10년 전 조회 1,348
10년 전 조회 1,290
10년 전 조회 1,460
10년 전 조회 1,287
10년 전 조회 1,292
10년 전 조회 1,381
10년 전 조회 2,116
10년 전 조회 1,353
10년 전 조회 1,340
10년 전 조회 1,433
10년 전 조회 1,335
10년 전 조회 1,510
10년 전 조회 1,419
10년 전 조회 1,350
10년 전 조회 1,345
10년 전 조회 1,391
10년 전 조회 1,373
10년 전 조회 1,285
10년 전 조회 1,255
10년 전 조회 1,219
10년 전 조회 1,256
10년 전 조회 1,645
10년 전 조회 1,292
10년 전 조회 1,402
10년 전 조회 1,351
10년 전 조회 1,582
10년 전 조회 1,371
10년 전 조회 1,321
10년 전 조회 1,330
10년 전 조회 1,362
10년 전 조회 1,483
10년 전 조회 1,421