Chrome extension read innerHTML of the current page?

Washu

New Member
Hi this may be a silly question, but I can't find the answer anywhere.I'm writing a chrome extension, all I need is to read in the html of the current page so I can extract some data from it.here's what I have so far:\[code\]<script> window.addEventListener("load", windowLoaded, false); function windowLoaded() { alert(document.innerHTML) }); }</script>\[/code\]Can anybody tell me what I'm doing wrong?thanks,
 
Top