COMING SOON 🚀

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

· 10년 전 · 1301

<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,249
10년 전 조회 1,206
10년 전 조회 1,218
10년 전 조회 1,234
10년 전 조회 1,295
10년 전 조회 1,210
10년 전 조회 1,441
10년 전 조회 1,596
10년 전 조회 1,496
10년 전 조회 1,250
10년 전 조회 1,251
10년 전 조회 1,209
10년 전 조회 1,207
10년 전 조회 1,322
10년 전 조회 1,247
10년 전 조회 1,191
10년 전 조회 1,250
10년 전 조회 1,600
10년 전 조회 2,064
10년 전 조회 1,636
10년 전 조회 1,466
10년 전 조회 1,423
10년 전 조회 1,271
10년 전 조회 1,262
10년 전 조회 1,275
10년 전 조회 1,239
10년 전 조회 1,254
10년 전 조회 1,279
10년 전 조회 1,441
10년 전 조회 1,353
10년 전 조회 2,071
10년 전 조회 1,603
10년 전 조회 1,359
10년 전 조회 1,441
10년 전 조회 1,698
10년 전 조회 1,368
10년 전 조회 1,545
10년 전 조회 1,388
10년 전 조회 1,495
10년 전 조회 1,345
10년 전 조회 1,308
10년 전 조회 1,307
10년 전 조회 1,337
10년 전 조회 1,343
10년 전 조회 1,375
10년 전 조회 1,400
10년 전 조회 1,368
10년 전 조회 1,528
10년 전 조회 1,516
10년 전 조회 1,302
10년 전 조회 1,597
10년 전 조회 1,956
10년 전 조회 1,397
10년 전 조회 1,660
10년 전 조회 1,617
10년 전 조회 1,472
10년 전 조회 1,418
10년 전 조회 1,385
10년 전 조회 1,507
10년 전 조회 1,242
10년 전 조회 1,321
10년 전 조회 1,544
10년 전 조회 1,364
10년 전 조회 1,359
10년 전 조회 1,318
10년 전 조회 1,349
10년 전 조회 1,336
10년 전 조회 1,340
10년 전 조회 1,366
10년 전 조회 1,301
10년 전 조회 1,474
10년 전 조회 1,300
10년 전 조회 1,302
10년 전 조회 1,396
10년 전 조회 2,127
10년 전 조회 1,369
10년 전 조회 1,355
10년 전 조회 1,443
10년 전 조회 1,350
10년 전 조회 1,528
10년 전 조회 1,433
10년 전 조회 1,358
10년 전 조회 1,353
10년 전 조회 1,402
10년 전 조회 1,381
10년 전 조회 1,295
10년 전 조회 1,265
10년 전 조회 1,235
10년 전 조회 1,265
10년 전 조회 1,658
10년 전 조회 1,299
10년 전 조회 1,413
10년 전 조회 1,364
10년 전 조회 1,589
10년 전 조회 1,381
10년 전 조회 1,333
10년 전 조회 1,338
10년 전 조회 1,375
10년 전 조회 1,495
10년 전 조회 1,429