url_get_domain

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

 

Syntax:

url_get_domain();

 

Returns:

String

 

Example:

dom_name=url_get_domain();

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