$id
$id : string
Specifies a unique id for an element.
A HTML element for Javascript.
newContent(string $id, string $content) : \OpenEstate\PhpExport\Html\Javascript
Create an embedded JavaScript.
string | $id | id attribute |
string | $content | JavaScript code |
created JavaScript element
newLink(string $id, string $src, string|null $onload = null, string|null $charset = null, boolean|null $defer = false, boolean|null $async = false) : \OpenEstate\PhpExport\Html\Javascript
Create an external JavaScript.
string | $id | id attribute |
string | $src | URL of the external JavaScript |
string|null | $onload | Javascript, that is executed after the external JavaScript file was loaded. |
string|null | $charset | charset of the external JavaScript |
boolean|null | $defer | defer execution of the external JavaScript |
boolean|null | $async | load external JavaScript asynchronously. |
created JavaScript element