Unable to take content from website html to insert into chrome extension popup.html

Viewed 25

I was trying to get content of a page and display it on the chrome pop up extension. Used the getelementbyclassname method in dom manipulation, however it still is undefined. Tried setting a delay however it still is the same. Any idea on this ?

1 Answers

I solved it with messages and service workers.
See the tutorial below.

How to make Chrome Extension 27 Get html information
https://youtu.be/m0H4g761vXo

Related