M
Marcel van den Dungen
Does anybody know how to use Python as the scripting language for HTML
applications? I tried the following, but I get a script error ('Object
expected') on the body element.
<html>
<head>
<title>Python controlled HTML application</title>
<hta:application id="oApplication">
<script language="python">
def Onload():
alert('hello from python')
document.all["idspan"] = 'hello from python'
</script>
</head>
<body onload="Onload();">
<span id="idspan" ></span>
</body>
</html>
Could not find any example on Google either.
TIA,
Marcel
applications? I tried the following, but I get a script error ('Object
expected') on the body element.
<html>
<head>
<title>Python controlled HTML application</title>
<hta:application id="oApplication">
<script language="python">
def Onload():
alert('hello from python')
document.all["idspan"] = 'hello from python'
</script>
</head>
<body onload="Onload();">
<span id="idspan" ></span>
</body>
</html>
Could not find any example on Google either.
TIA,
Marcel