[Greasemonkey] Reference function

Aaron Boodman zboogs at gmail.com
Sat Aug 5 17:42:31 EDT 2006


When you hit "new user script" for the first time, we should open a
tab with this question and answer in it.

- a

On 8/5/06, Rod McGuire <mcguire at telerama.com> wrote:
>
>
> same question answered 1 day ago.
> http://mozdev.org/pipermail/greasemonkey/2006-August/009048.html
>
> Quoting Tracid <tracid at zappmobile.ro>:
> >
> > I cannot get the page access the userscript functions.
> > [crop]
> > window.hello = function () { alert ('yay'); }
> > document.body.innerHTML += '<input type="button"
> > onclick="window.hello()" value="Try">';
> > document.body.innerHTML += '<input type="button" onclick="hello()"
> > value="Try again">';
> > [/crop]
> >
> > when I press the "Try" and the "Try again" buttons, I get error messages...
> > What am I doing wrong?
> > _______________________________________________
> > Greasemonkey mailing list
> > Greasemonkey at mozdev.org
> > http://mozdev.org/mailman/listinfo/greasemonkey
> >
>
>
>
>
> _______________________________________________
> Greasemonkey mailing list
> Greasemonkey at mozdev.org
> http://mozdev.org/mailman/listinfo/greasemonkey
>


More information about the Greasemonkey mailing list