Use "elUsername.value" instead of "elUsername.textContent".

On Mon, Jan 11, 2010 at 4:34 PM, Ben Stover <[email protected]> wrote:
> After successful installation of the script at the bottom of this posting I 
> called the main page:
>
> http://www.web.de/fm/
>
> and expected the loginname field to be pre-filled.
>
> This is the case - partially!
>
> Although the html source code shows that the value is correctly filled from 
> the Greasemonkey script
> it (the value) does NOT appear on the screen.
>
> So it seems to me that the filling is performed AFTER the rendering of the 
> whole web page through Firefox.
>
> How can I let Firefox display the value it gets from greasemonkey script?
>
> Ben
>
> // ==UserScript==
> // @name            AutologinWebDe
> // @namespace       nsAutologinWebDe
> // @description     Autologin WebDe
> // @include         http://www.web.de/fm/
> // @version         0.0.1
> // ==/UserScript==
>
> var elUsername = document.getElementById('inpLoginUsername'),;
> elUsername.textContent = "myname";
-- 
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.


Reply via email to