구현해야할 기능 중에, 오른버튼 클릭을 막아놓은 걸 풀어주는 것도 하나 넣어볼려고 합니다.
자바스크립트로는 아래 코드로서, body에 적용해둔 oncontextmenu="return false;" 가 풀리더군요.
Code: Select all
window.oncontextmenu = null;
Code: Select all
void(window.content.document.ondragstart = window.content.document.body.ondragstart = null);
void(window.content.document.oncontextmenu = window.content.document.body.oncontextmenu = null);
void(window.content.document.onselectstart = window.content.document.body.onselectstart = null);
void(window.content.document.onclick = window.content.document.body.onclick = null);
void(window.content.document.onmousedown = window.content.document.body.onmousedown = null);
void(window.content.document.onmouseup = window.content.document.body.onmouseup = null);
void(window.content.document.onbeforecopy = window.content.document.body.onbeforecopy = null);
void(window.content.document.onbeforecut = window.content.document.body.onbeforecut = null);
void(window.content.document.oncopy = window.content.document.body.oncopy = null);
Code: Select all
[Exception... "Component is not available" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: chrome://test/content/test.js :: anonymous :: line 151" data: no]
Code: Select all
window.content.oncontextmenu = null;
읽어주셔서 감사드립니다.