Mohd Talha
Mohd Talha

Reputation: 17

How to combine HTML with Python?

When I run the HTML page then my PYTHON Program must be called after clicking the button.

<html>
    <head>
        <script type="text/javascript" language = "javascript">
            function clicked()
            {
                // call python program
            }
        </script>
    </head>
    <body>
        <input type="button" onclick = "clicked()" id="b1">
    </body>
</html>

Python Programs:

print("Hii")

Upvotes: 0

Views: 333

Answers (1)

Itay Daniel Zecharia
Itay Daniel Zecharia

Reputation: 21

You may want to send a request to an endpoint implemented by Python.

Upvotes: 1

Related Questions