Link sizes attribute

Definition and Usage

size This attribute returns the

HTML Reference Manual:sizes attribute

value.

The size attribute specifies the icon size of the visual media and is used only when rel="icon".

Note:This attribute is read-only.

See also:

HTML Reference Manual:HTML <link> sizes Attribute

HTML Reference Manual:HTML <link> Tag

Example

Returns the size of the link icon:

var x = document.getElementById("myLink").sizes;

Try It Yourself

Syntax

linkObject.sizes

Technical Details

Return Value: Icon Size.

Browser Support

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
Supported Not Supported Supported Not Supported Supported