I am trying to make a bookmarklet, that navigates to http://projects.csail.mit.edu/church/wiki/ChurchServ and then inserts some code into the input-box on this site.
I was trying this:
<a href="javascript:
var w=window.open('http://projects.csail.mit.edu/church/wiki/ChurchServ','_blank');
w.onload=function(){w.getElementsByClassName('scheme-comment')[0].textContent='my code...';};
">Klick me!</a>
It is loading the page but does not modify it. Whats going wrong?