Closed roberto170 closed 4 months ago
import webui const ig = """ <!DOCTYPE html> <html> <body> <div>hello</div> <button id="Bt1">ClickMe</button> </body> </html> """ proc main()= let window = newWindow() window.bind("Bt1") do (e : Event) : webui.exit() window.show(ig) wait() main()
examples are working
You need to add <script src="webui.js"></script> into your html.
<script src="webui.js"></script>
bind event not working