Skip to content

Javascript API

Czarek Tomczak edited this page Feb 6, 2016 · 1 revision

Table of Contents generated with DocToc

window.phpdesktop

PHP Desktop Chrome exposes its API through the javascript "phpdesktop" object that is binded to the "window" object. Below are the methods of this object:

GetVersion()

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

ToggleFullscreen()

To go into fullscreen mode or exit fullscreen mode.

IsFullscreen()

Whether in fullscreen mode.


Other functions

window.close()

Close application window. See also Issue #95.