Skip to content

Kirby 4.4.1

Html::js()

Creates a script tag to load a javascript file

Html::js(Kirby\Cms\Plugin|Kirby\Cms\PluginAssets|array|string $url, array|string|bool|null $options = null): string|null

Parameters

Name Type Default
$url * Kirby\Cms\Plugin|Kirby\Cms\PluginAssets|array|string
$options array|string|bool|null null

Return type

string|null

Parent class

Kirby\Cms\Html