Sending developed dom through chrome extension to a webservice
I am trying to create开发者_JAVA技巧 an extension to send the developed dom of the current tab to a web service at the push of a button, any one knows how I would go about it? methodology,code or simple advice will be appreciated.
I am noob :(
You need innerHTML
:
var html = document.getElementById("element1").innerHTML;
精彩评论