I'm making a screen in HTML where I can load some values according if there's a neccesity or not of some products, and make some tables and graphs using python.
So, when you click the "Load settings" button, the python program I have can take all the info from the HTML and proccess it.
<!DOCTYPE html>
<html>
<head>
<title>Test1</title>
</head>
<body>
<p>Checking order and functionality</p>
<form action="demo_form.asp">
Delay 5 weeks: <input type="text" name="D5w" value=""><br>
<input type="button" value="Load" onclick="window.open('C:/Python27/hello.py')">
</form>
</body>
</html>
My problem is in the button, how can I make that it runs the .py program I have?? I tried with window.open() and location.href but it just opens the code in a new tab.
Suggestions??