I have an HTML page with one button, and I need to execute a python script when we click on the button and return to the same HTML page with the result.
So I need do
You can use Ajax, which is easier with jQuery
$.ajax({ url: "/path/to/your/script", success: function(response) { // here you do whatever you want with the response variable } });
and you should read the jQuery.ajax page since it has too many options.