[Greasemonkey] DOMContentLoaded problem

Linan Wang tali.wang at gmail.com
Thu Oct 5 07:12:34 PDT 2006


The method described in greasemonkey blog is good except:

iframe.contentWindow.location.href = location.href;

//Change the location.href='about:blank' is a better way.
iframe.contentWindow.location.href ='about:blank';

I used this couple of month ago, and one more benefit is it will not load
current document twice, which the extra one is loaded in the hidden iframe.

On 10/5/06, s g <junkvendoremail at yahoo.com> wrote:
>
> i tried out this link
>
>
> http://youngpup.net/userscripts/htmlparserexample.user.js
>
> everything works except the DOMContentLoaded event
> is not bing fired.
>
>
>
>
>
>
> ---------------------------------
> Get your email and more, right on the  new Yahoo.com
> _______________________________________________
> Greasemonkey mailing list
> Greasemonkey at mozdev.org
> http://mozdev.org/mailman/listinfo/greasemonkey
>



-- 
Best regards

Linan Wang


More information about the Greasemonkey mailing list