How do I run python inside an HTA application.
OS = Windows 8.1
Python = ActivePython-2.7.10.12-win64-x64
<html>
<head>
<title>demo</title>
</head>
<body>
<form name=fom1>
<input type=button name=b1 value=add onclick=s1()><br>
<input type=button name=b2 value=add onclick=d1()><br>
<input type=button name=b3 value=add onclick=f1()><br>
</form>
<script language=vbscript>
sub s1
msgbox "from vbscript"
end sub
</script>
<script language=python>
alert("hi");
def d1():
alert("from python");
</script>
<script language=jscript>
function f1(){
alert("from jscript");
}
</script>
</body>
</html>
That is my code for now. The vbscript and jscript works. But the python code does not seem to run. When I click on on b2 i get an error saying "the value of the property d1 is null or undefined."