Can python do something like the onclick events in javascript ?

L

Leo Brugud

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.

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

Thanks in Advance
 
D

Diez B. Roggisch

Leo said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,120
Latest member
ShelaWalli
Top