JDocument::addScript/1.6

From Joomla! Documentation

Jump to: navigation, search

Joomla 1.6 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

SeeAlso:JDocument::addScript [Edit See Also]

User contributed notes


Personal tools