Phaser API Documentation


Member of: Phaser.Game

domContainer: HTMLDivElement


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.

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