[Tutor] Using Python to replace javascript

Alan Gauld alan.gauld at btinternet.com
Thu Nov 6 14:41:19 CET 2008

"Jim Morcombe" <jmorcombe at westnet.com.au> wrote

> Is there any way to write python code inside a HTML page instead of 
> using Javascript?

Yes, but only if you
a) are using IE as your browser under Windows.
b) Have WSH installed
c) Have run the scripting activation script in the Pyhonwin package

OR you could write your own browser in Python...

Another option is to make Javascript more like Python
by using Mochikit...


In general I'd try to stick to vanilla JavaScript for client
side web scripting, anything else runs the risk of not
working as expected on somebody's browser.

Alan Gauld
Author of the Learn to Program web site

More information about the Tutor mailing list