Relative Content

Tag Archive for javascriptpythonexecjs

Running a script with execjs that uses window and document

I need to call a method from within a JavaScript file using execjs in python. This file has many window and document calls. So, execjs is not able to compile it. Is there any way to bypass this limitation of execjs? I only need one method from within the file but it has so many other methods it calls which call other methods. Anyway, here is what I have tried so far: