Skraund Posted August 10, 2018 Share Posted August 10, 2018 Hello, I'm having a problem, I need to call a function in the browser from the lua script. But I can not do it at all. ----------------------------------------------------------------------------------------------------------------------------------------- HTML: <script> function chat() { var text = document.getElementById( "Text" ).value document.getElementById( "Text" ).value = "" } </script> LUA: executeBrowserJavascript( theBrowser, "?" ) ----------------------------------------------------------------------------------------------------------------------------------------- Someone can tell how to call a function in the browser from the lua script? Link to comment
MIKI785 Posted August 10, 2018 Share Posted August 10, 2018 It's simple: executeBrowserJavascript(theBrowser, "chat();") keep in mind that the browser has to be local. Link to comment
Skraund Posted August 10, 2018 Author Share Posted August 10, 2018 Thank you very much for your help! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now