[Project_owners] appendChild of a iframe into document.body

Foreningen Selvet - Jesper Staun Hansen jesper at selvet.dk
Sat Aug 11 06:58:29 PDT 2007


Yea, and it works like a charm, expect from the flash part.
Perhaps I should throw this: iframe.contentWindow.location.href = 
location.href;
before appendChild?

eric.jung at yahoo.com wrote:
> Did you try preventing about:blank from loading in the IFRAME with the 
> code I pointed you to yesterday?
>
> ----- Original Message ----
> From: Foreningen Selvet - Jesper Staun Hansen <jesper at selvet.dk>
> To: Project Owners <project_owners at mozdev.org>
> Sent: Saturday, August 11, 2007 9:36:35 AM
> Subject: [Project_owners] appendChild of a iframe into document.body
>
> Hellow
>
> appendChild of a iframe into document.body
> Like this: document.body.appendChild(iframe) created by this:
>
>       var iframe = document.createElement("IFRAME");
>       iframe.setAttribute("style",
> "visibility:hidden;position:absolute;top:0px;left:0px;width:0px;height:0px;border-style:none;border-width:0px;display:none;");
>       document.body.appendChild(iframe);
>
> This will make the window flash white for a sec every time it is ran.
> Its quiet annoying, anyone know how this is solved?
>
>
> Greets.
>
> _______________________________________________
> Project_owners mailing list
> Project_owners at mozdev.org
> http://mozdev.org/mailman/listinfo/project_owners
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Project_owners mailing list
> Project_owners at mozdev.org
> http://mozdev.org/mailman/listinfo/project_owners
>   




More information about the Project_owners mailing list