API17:JDocument::addScript
From Joomla! Documentation
JDocument::addScript
Description
Adds a linked script to the page.
public function addScript (
$url
$type="text/javascript"
)
| Parameter | Type | Default | Description |
|---|---|---|---|
| $url | string | URL to the linked script | |
| $type | string | "text/javascript" | Type of script. Defaults to 'text/javascript' |
- Returns
- Defined on line 402 of libraries/joomla/document/document.php
See also
JDocument::addScript source code on BitBucket
Class JDocument
Subpackage Document- Other versions of JDocument::addScript
User contributed notes
Code Examples