On Thu, Jun 10, 2010 at 6:33 PM, Toddintr <[email protected]> wrote:
> YES, thank you! That worked with one minor problem:
>
> I see the value I am setting being put into the field, but it's
> immediately erased (it flashes and is erased), because the page erases
> all fields when the it first loads. It seems that my script runs
> first, then the field cleanup code runs. I can either wait a while
> and then run my script, or somehow find out the code that cleans up
> the fields and prevent it from running (not sure how to do this,
> though).
>
Did you try executing your code from an onload handler?
window.addEventListener('load',
function(){document.getElementsByName('textMARS')[0].value="foo" } , false);
--
You received this message because you are subscribed to the Google Groups
"greasemonkey-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/greasemonkey-users?hl=en.