<body> 태그 안에 oncontextmenu="return false" 만 추가하시면 됩니다.
마우스로 텍스트영역 선택도 할 수도 없게 하려면 ondragstart="return false" onselectstart="return false" 를 더 추가해서
<body oncontextmenu="return false" ondragstart="return false" onselectstart="return false"> 이렇게 하시면 됩니다.
예제는 링크 해놓았습니다.
마우스로 텍스트영역 선택도 할 수도 없게 하려면 ondragstart="return false" onselectstart="return false" 를 더 추가해서
<body oncontextmenu="return false" ondragstart="return false" onselectstart="return false"> 이렇게 하시면 됩니다.
예제는 링크 해놓았습니다.
댓글 2개
12년 전
풀어주는 소스
javascript:function r(d){d.oncontextmenu=null;d.onselectstart=null;d.ondragstart=null;d.onkeydown=null;d.onmousedown=null;}function unify(w){try{r(w.document);}catch(e){}try{r(w.document.body);}catch(e){}try{var divs=w.document.getElementsByTagName("div");for(var i=0;i<divs.length;i++){try{r(divs[i]);}catch(e){}}}catch(e){}for(var i=0;i<w.frames.length;i++){try{unify(w.frames[i].window);}catch(e){}}}unify(self);
javascript:function r(d){d.oncontextmenu=null;d.onselectstart=null;d.ondragstart=null;d.onkeydown=null;d.onmousedown=null;}function unify(w){try{r(w.document);}catch(e){}try{r(w.document.body);}catch(e){}try{var divs=w.document.getElementsByTagName("div");for(var i=0;i<divs.length;i++){try{r(divs[i]);}catch(e){}}}catch(e){}for(var i=0;i<w.frames.length;i++){try{unify(w.frames[i].window);}catch(e){}}}unify(self);
12년 전
ㅎㅎ
게시판 목록
팁게시판
디자인과 관련된 유용한 정보를 공유하세요.
질문은 상단의 QA에서 해주시기 바랍니다.
질문은 상단의 QA에서 해주시기 바랍니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 5377 |
잘살아보자
|
11년 전 | 891 | |
| 5376 | 11년 전 | 1914 | ||
| 5375 | 11년 전 | 1123 | ||
| 5374 | 11년 전 | 1530 | ||
| 5373 |
SOFTA
|
11년 전 | 5719 | |
| 5372 | 11년 전 | 2250 | ||
| 5371 | 11년 전 | 15266 | ||
| 5370 | 11년 전 | 1406 | ||
| 5369 | 11년 전 | 3139 | ||
| 5368 | 11년 전 | 1569 | ||
| 5367 |
네이비컬러
|
11년 전 | 3602 | |
| 5366 |
네이비컬러
|
11년 전 | 1318 | |
| 5365 | 11년 전 | 5013 | ||
| 5364 | 11년 전 | 4397 | ||
| 5363 | 11년 전 | 4419 | ||
| 5362 | 11년 전 | 1193 | ||
| 5361 | 11년 전 | 2657 | ||
| 5360 |
봉보로봉봉
|
11년 전 | 907 | |
| 5359 |
입문개발자
|
11년 전 | 3236 | |
| 5358 | 11년 전 | 3128 | ||
| 5357 | 11년 전 | 2061 | ||
| 5356 | 11년 전 | 2505 | ||
| 5355 | 11년 전 | 2262 | ||
| 5354 | 11년 전 | 1351 | ||
| 5353 | 11년 전 | 3604 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기