Skraund Posted August 10, 2018 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?
MIKI785 Posted August 10, 2018 Posted August 10, 2018 It's simple: executeBrowserJavascript(theBrowser, "chat();") keep in mind that the browser has to be local. Lua Scripter Owner of mshost.cz MTA portal.
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