Can python do something like the onclick events in javascript ?

Diez B. Roggisch deets at
Mon Aug 3 20:45:14 CEST 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:


More information about the Python-list mailing list