Phaser API Documentation

  Version: 

Member of: Phaser.Game

domContainer: HTMLDivElement

Description:

A reference to an HTML Div Element used as the DOM Element Container.

Only set if createDOMContainer is true in the game config (by default it is false) and if you provide a parent element to insert the Phaser Game inside.

See the DOM Element Game Object for more details.

Type:
HTMLDivElement
Since: 3.17.0
Source: src/core/Game.js (Line 89)