none
getting error "permission denied" in IE 7 and IE8 RRS feed

  • Question

  • hello,

    ihave problem in IE 7 and IE 8.

    here is my code.

            iframes=document.getElementsByTagName("iframe");

            for(var frame=0;frame<iframes.length;frame++) {
               
                var iframedoc=iframes[frame].contentDocument || iframes[frame].contentWindow.document;

                if(iframedoc) {
               
                    objects=iframedoc.getElementsByTagName("select");
                    for(var index=0;index<objects.length;index++) {
                        objects[index].style.visibility="hidden";
                    }
                }
            }

    In this code i m finding iframe and then hiding combo box of that iframe.

    but while i m loading page i m getting " Permission Denied" error  on this line "var iframedoc=iframes[frame].contentDocument || iframes[frame].contentWindow.document;"

    though there is no any iframe in page.

     

     

    Thursday, April 21, 2011 1:23 PM

Answers