How can my HTML file pass JavaScript results back to a Python script that calls it?
This would be very hard to accomplish without the use of external libraries. You'd need a HTML parser to start with, so you can actually make sense of the HTML. Then you'd need a Javascript parser/lexer/engine so you could do the actual calculations. I guess it would be possible to implement this in Python, but I'd recommend looking for an open source project which already implemented this. You'd then have to parse/lex/interpret the javascript and pass back the result to python. 
All in all I'd say it's easier to just port the Javascript calculation to Python, but that's just me.
I have a python script and this python script shall call an html-file (i.e. a web page) stored locally on the computer. The html-file does some calculations (jquery,javascript and so on) and should pass the result back to the python script.
I don't want to change the setting (python script calls html-file and result is passed back to python-script) so please don't ask why.
Could anyone tell me how to solve this? How can I pass the result from html-file to the calling python function? That troubles me since 2 weeks.
Thanks!