Hi,
I tried to use a content script to add some text at the beginning of the html page for a specific web page.
In foo.js:
document.write('Hello World!')
which doesn't work;
However, by following the "official" Chrome sample, I am able to change the first picture on the page:
document.images[0].src = "http://icanhascheezburger.files.wordpress.com/2007/01/i-can-has-cheezburger.jpg"
document.images[0].style.height = "auto"
It seems the same DOM to me. Any ideas why document.write won't work?
Thanks!


LinkBack URL
About LinkBacks



Reply With Quote
