In my content script, I call html element. This element have some defined methods (written in script of that page).
In my content script, I can get all behavior and some methods (DOM element) of that html element (via getElementById method), but I cannot call its defined methods. How can I do?
For example, on page http://example.com/test.html, there is an element with id is "xyz". This element have some methods doit, playit etc. These methods are written on script of this page.
In content script, I use:
var ob = document.getElementById("xyz");
ob.doit();//error