[Greasemonkey] Replacing the head element
Lenny Domnitser
ldrhcp at gmail.com
Fri Jun 2 14:01:27 EDT 2006
On 6/2/06, esquifit <esquifit at googlemail.com> wrote:
> Sorry for the silly question: where does the difference lie between your
> proposal
>
> setTimeout(function() {
> location.reload();
> }, 30000);
>
> and Anthony's
>
> setTimeout(document.location.reload, 30000);
>
> What's the purpose of wrapping the actual function we are interested in
> into an anonymous one?
It doesn't work without the wrapper. I tried it Anthony's way first,
but, for reasons I don't understand, it didn't work.
More information about the Greasemonkey
mailing list