On 2014-01-15 13:58, Ben Stover wrote:
Assume I have a webpage with the following code inside:

...
<span class="aaa">
   ...
</span>
...

Now I want to replace all the stuff inside (!) the span with the current URL. I 
use the following Greasemonkey code:

var address = document.URL;
var pane = document.getElementsByClassName("span.aaa")[0];
Not a Greasemonkey problem:

The classname is "aaa", not "span.aaa" (that would be a selector, not a classname).

--
Klaus Johannes Rusch
[email protected]
http://klausrusch.atmedia.net/

--
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/greasemonkey-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to