Skip to content Skip to sidebar Skip to footer

"document" Is Not Defined In Java ScriptEngine

i'm trying to call document in java using scriptEngine here is my code ScriptEngineManager scriptEngineManager=new ScriptEngineManager(); ScriptEngine scriptEngine=script

Solution 1:

The script engine in Java provides the ability to execute Javascript code, but does not provide an emulation of a browser.

document, window and other objects are defined by the browsers but are not mandated to be present by ECMAScript specification (http://www.ecma-international.org/ecma-262/5.1/#sec-15).


Post a Comment for ""document" Is Not Defined In Java ScriptEngine"