<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에서 해주시기 바랍니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 5777 | 10년 전 | 459 | ||
| 5776 | 10년 전 | 303 | ||
| 5775 | 10년 전 | 234 | ||
| 5774 | 10년 전 | 917 | ||
| 5773 | 10년 전 | 267 | ||
| 5772 | 10년 전 | 303 | ||
| 5771 | 10년 전 | 420 | ||
| 5770 | 10년 전 | 381 | ||
| 5769 | 10년 전 | 221 | ||
| 5768 | 10년 전 | 283 | ||
| 5767 | 10년 전 | 1159 | ||
| 5766 | 10년 전 | 383 | ||
| 5765 | 10년 전 | 463 | ||
| 5764 | 10년 전 | 430 | ||
| 5763 | 10년 전 | 380 | ||
| 5762 | 10년 전 | 226 | ||
| 5761 | 10년 전 | 375 | ||
| 5760 | 10년 전 | 421 | ||
| 5759 | 10년 전 | 837 | ||
| 5758 | 10년 전 | 313 | ||
| 5757 | 10년 전 | 390 | ||
| 5756 | 10년 전 | 351 | ||
| 5755 | 10년 전 | 368 | ||
| 5754 | 10년 전 | 249 | ||
| 5753 | 10년 전 | 429 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기