Go back to index | ">Refresh

Javascript API

PHP Desktop exposes its API through the javascript "phpdesktop" object that is binded to the window object.

phpdesktop.GetVersion()

Get the PHP Desktop version. This value is taken from the version info embedded in the phpdesktop executable.

phpdesktop.ToggleFullscreen()

To go into fullscreen mode or exit fullscreen mode.

phpdesktop.IsFullscreen()

Whether in fullscreen mode.