I need to run javascript in php or python or java. My problem is, when a dynamic page load in browser some javascript executes and add some content on html. But if i download the file using wget or any programming language then i can not find the dynamic portion. I am giving you an example:
<html>
<body>
<script type="text/javascript" >
document.body.innerHTML= "hello world";
</script>
</body>
</html>
In the above code when i run the code in browser it shows hello world. But if i download the file or open with text editor i will see nothing. So i need to get the output using any programming language. For that i need to execute the javascript. [python,c/c++,php,javascript,java] any language.