[Greasemonkey] Refrencing a field name without form name
Dave Land
land at aol.com
Mon Sep 18 11:21:43 EDT 2006
On Sep 18, 2006, at 9:17 AM, rejectpenguin wrote:
>
> So how could I do this without having the name of the form?
If there is only one form on the page:
document.forms[0] is a reference to the form and
document.forms[0].fieldName (if "fieldName" is the field name)
is your field.
Using references like this, you don't have to have access to
the server, which is often the case when using GreaseMonkey --
in fact, it is kind of the _point_ of Greasemonkey.
Dave
More information about the Greasemonkey
mailing list