[javascript] 간단하게 html 마우스 오른쪽 버튼 소스메뉴 보기 막기
//소스메뉴 보기 방지 document.oncontextmenu = function () { // Use document as opposed to window for IE8 compatibility return false; }; //마우스 드래그 방지 document.ondragstart = function () { return false; }; //본문 복사 방지 document.onselectstart = function () { return false; };
Programming/javascript
2022. 2. 11. 15:44
반응형