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];
pane.innerHTML = "<br>URL: <a href=\"" + address + "\">" + address + "<\a>";
Unfortunately it does not work.
Why?
Is there another solution?
Ben
--
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.