Open marnov042 opened 2 years ago
Once clicked I do see it fires starts
in Python because it prints "started" and from there you can fire a javascript function as callback to change the text!
So it would be: PYTHON ` @eel.expose def starts():
eel.change()()
print("started")
`
JAVASCRIPT
eel.expose(change); function change() { if (document.getElementById("startbut").innerHTML == "START"){ document.getElementById("startbut").innerHTML = "STOP" }else{ document.getElementById("startbut").innerHTML = "START" } }
running javascript when i update html code to something else(with javascipt in it) the javasctipt doesnt looks like its running
main.py
main.js
index.html
index2.html
the javascpit code in index2.html doesnt run, i know the script works , even when i put it inside console
Desktop :