Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Joomla 11.1 JDocument::addScript


Adds a linked script to the page.

Description:JDocument::addScript [Edit Descripton]

public function addScript (
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

SeeAlso:JDocument::addScript [Edit See Also]

User contributed notes

<CodeExamplesForm />