url_get_domain

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

Syntax:

url_get_domain();


Returns: string


Description

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

Example:

dom_name=url_get_domain();

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


Back: HTML5
Next: browser_height
© Copyright YoYo Games Ltd. 2018 All Rights Reserved