title: In chrome extension, how to listen for events for a page that is dynamically generated by the content script?
body: <p>I have injected an html file in chrome extension using content script. Now I need to listen for events for the elements of that page. So how do I do that? Should I write the code in content script or in a separate javascript file?</p>