Active Scripting in Python

Mark McEahern marklists at mceahern.com
Thu Sep 4 09:12:06 EDT 2003


On Wed, 2003-09-03 at 23:23, Jane Austine wrote:
> I donwloaded win32all for Python 2.3 and installed it.
> 
> I manually run pyscript.py and it returned "successfully registered"
> message.
> 
> For a simple test(on client side), I created the following html:
> 
> <script language=Python>
> alert("hello world")
> </script>
> 
> And opened it in IE6.0 on WinXP.  Unfortunately, it doesn't show
> anything.

I can't test this right now because my Windows machine at home is dead
(long story), but have you tried using:

print "hello world"

OR

document.write("hello world")

I guess my question is whether "alert" is available when you're using
language="Python".

// m






More information about the Python-list mailing list