Actions

JDocumentHTML/addFavicon

Other languages:
English 100% • ‎español 100% • ‎français 11%

Adds a link to the icon shown in the favourites list or on the left of the URL in the address bar. Some browsers display it on the tab, as well.

Syntax

void addFavicon( $href, $type, $relation )

where:

Argument Data type Description Default
$href string URL of the icon image file.
$type string MIME type of the icon image file. 'image/vnd.microsoft.icon'
$relation string Relation of link. 'shortcut icon'

Example

See also