[Greasemonkey] addEventListener example doesn't work?

Matt Labrum darktempler at gmail.com
Tue Sep 20 20:26:48 EDT 2005


document.documentElement is the document element so

document.documentElement.innerHTML = 'Hello, world!';

works :P

On 9/20/05, Lenny Domnitser <ldrhcp at gmail.com> wrote:
>
> On 9/19/05, Ivan Tubert-Brohman <itub at cpan.org> wrote:
> > document.innerHTML = "Hello, world!";
>
> I didn't notice this the first time around, but document does not have
> an innerHTML property. Try document.documentElement.innerHTML.
> _______________________________________________
> Greasemonkey mailing list
> Greasemonkey at mozdev.org
> http://mozdev.org/mailman/listinfo/greasemonkey
>


More information about the Greasemonkey mailing list