Can python do something like the onclick events in javascript ?

Diez B. Roggisch deets at nospam.web.de
Mon Aug 3 14:45:14 EDT 2009


Leo Brugud schrieb:
> I'm trying to use python to build a simple web page that make use of
> the onclick behavior, instead of requiring users
> to click the 'submit' button.

If that's the only reason, don't use JS for that, it's annoying.

> I realize in javascript there are onclick, onchange events. Is python
> capable of doing the same?

Somewhat, through a python-2-javascript-translation:

http://pyjs.org/


Diez



More information about the Python-list mailing list