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

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -