THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

Link sizes Property

Link Object Reference Link Object

Example

Return the size of the linked icon:

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

The result of x will be:

16x16
Try it yourself »

Definition and Usage

The sizes property returns the value of the sizes attribute of the linked resource.

The sizes attribute specifies the sizes of icon for visual media, and is only used if rel="icon".

Note: The sizes attribute is currently not supported in any of the major browsers.

Note: This property is read-only.


Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The sizes property is currently only supported in Chrome and Opera.

Note: Opera 12 and earlier versions do not support the sizes property.


Syntax

linkObject.sizes

Technical Details

Return Value: The size of the icon

Related Pages

HTML reference: HTML <link> sizes attribute


Link Object Reference Link Object