Click to See Complete Forum and Search --> : Define scrolling attribute with javascript


abuenog
09-19-2004, 07:53 AM
Hello,

I am creating a iframe element with javascript. I have this:


this.frmObj= document.createElement("iframe");
this.frmObj.setAttribute("id",this.name+"_iframe");
this.frmObj.className="divPanel";
this.frmObj.src="blank.html";
this.frmObj.setAttribute("frameBorder","0")



now I need to define the attribute scrolling. I tried with:

this.frmObj.setAttribute("scrolling","no");

but not run...

Do you know any solution?

Thanks

Fang
09-19-2004, 08:46 AM
Works ok, but if the file to be loaded does not exist IE will override your settings and display the "The page cannot be displayed" page. Mozilla shows nothing.