I have code which uses ScriptEngineManager, ScriptEngine class for executing JavaScript code using Java. But it works fine in Java SE, and doesn\'t work in Android - SDK sh
If you want to run some javascript code on chrome browser as per the question copy this code and paste it into address bar:
data:text/html, Notepad alert('Abhasker Alert Test on Mobile');