javascript - Getting access to window object in JSM -


i creating firefox extension. want reference window object in jsm file.
file imported using

components.utils.import("resource://js/my_module.jsm"); 

in my_module.jsm there line:

var jqenv = window.content.document; 

which throws error, "window not defined"

how can access window object in jsm file?

to access window object want, see documentation.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -