javascript - Get DOM values in browser extension -
i want read value of dom element. new browser extensions. came across codes provided in executing code in browser context how fetch value , use in extension's context?
var value = document.getelementbyid('id1'); // here document should of browser context.
try
var value = document.getelementbyid('id1').value;
// note .value
.
you have access dom content scripts.
Comments
Post a Comment