\Hazaar\Html
Script
The HTML script class.

Displays an HTML <script> element.

Tags

Since

1.1

Summary
Methods Properties Constants
src
No properties No constants
Methods
__construct()
__construct($content = null, $type = 'text/javascript', $params = Array ( ) )

The HTML script constructor.

Tags

Since

1.1

Parameters

$contentmixed

The content can be loaded from various sources and can be specified as one of the

         following:

         * A string of JavaScript that will comprise the content of the script block.
         * A filename to a local file from which the script will be loaded.
         * A URL to a file that will cause the HREF parameter to be set.
$typestring

The type of script. Usually text/javascript.

$params

No description

src()
src($file)

Parameters

$file

No description