url_get_domain

Returns the domain where the game is being hosted (HTML5 only).

Syntax:

GML Code Example

url_get_domain();


Returns: string


Description

You can use this to get the domain where your HTML5 game is being played.

Example:

GML Code Example

dom_name=url_get_domain();

This will store the domain of your game in the variable "dom_name".


Back: HTML5



No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here