0
<browser id="search" type="content-targetable" src="www.google.com">
</browser>
는 자바 스크립트 코드는 많은 XUL 태그와 마찬가지로xul에서 내 브라우저 요소에 대한 docShell에 액세스 할 수 없습니까?
// I am using script to set the property of browser element
var x=document.getElementById('search');
x.docshell.allowAuth="false" // The code stops here
x.docshell.allowPlugin="false" //This does not work
해당 코드를 언제 실행합니까? –
브라우저 요소를 만든 후에 함수를 사용하여 스크립트를 호출합니다 .... 그러나 스크립트는 그 시점에서 작동하지 않습니다 ..... 이 기능을 사용하려면 일부 모질라 서비스가 필요합니다 ..... – Dilletante
[link] (https://developer.mozilla.org/en/XPCOM_Interface_Reference/nsIDocShell) 이 링크는 도움이됩니다 .... 그러나이 스크립트를 실행할 수있는 방법을 찾을 수 없습니다. – Dilletante