0 votes

Hi Community,

I have a webpage contains a form with username & password field , the webpage is running in Django web-framework.
and assume , I will have a html5 game which is export from godot game engine.

In godot, does it possible to submit the data from webpage and send this submit data to html5 game? any tutorial or guideline . please help to share.

the flow like this:

website (form) ->submit form -> game (html5 exported by godot engine)

in Engine by (29 points)

1 Answer

+1 vote
Best answer

Your Godot HTML5 game can invoke JavaScript with JavaScript.eval(), here is a tutorial on it:


If your form can set its data on the window, then you could do from within Godot:

var username = JavaScript.eval("window.username")

But for that to work, your form needs to stick its data onto the window with JavaScript. Since HTML forms can be done in many different ways, it's hard to offer more help.

by (84 points)
selected by
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.