I have a HTML input and onClick with a button, I get the value of text input and store in a varibale in Javascipt. Now how can I use this varibale as a paramter to a python function?
In JavaScript I have:
var text = document.getElementById("text").value;
and in Python I have:
someFunction(text):
print(text) # text is what I want to be passed from javascript
I am using pyscript to run my python codes