JDocument::addScript/1.6
From Joomla! Documentation
JDocument::addScript
Description
Adds a linked script to the page.
Description:JDocument::addScript [Edit Descripton]
public function addScript ( $url $type="text/javascript" $defer=false $async=false )
| Parameter | Type | Default | Description |
|---|---|---|---|
| $url | string | URL to the linked script | |
| $type | string | "text/javascript" | Type of script. Defaults to 'text/javascript' |
| $defer | bool | false | Adds the defer attribute. |
| $async | bool | false | Adds the async attribute. public |
- Returns
- Defined on line 432 of libraries/joomla/document/document.php
See also
JDocument source code on JoomlaCode
Class JDocument
Subpackage Document- Other versions of JDocument::addScript
SeeAlso:JDocument::addScript [Edit See Also]