Assume I have the following code:

<div class"foobar">
....
  <a class="aaa" .....> .... </a>
....
</div>

Now I want to completely replace the <a> element (including child stuff) by 
another.
Then the follawing does not work:

var address = document.URL;
var div = document.getElementsByClassName("foobar.aaa")[0];
div = "<a href=\"" + address + "\">" + address + "</a>";

How else does that work?

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 https://groups.google.com/group/greasemonkey-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to