JDocument::addScriptDeclaration
Adds a script to the page
Signature
public function addScriptDeclaration(string
$content,
[string
$type = 'text/javascript'] )
Parameters
-
$content
- Script
-
$type
- Scripting mime (defaults to 'text/javascript')
Returns
- JDocument
- instance of $this to allow chaining