FREE Web Template Download
HTML CSS JAVASCRIPT SQL PHP BOOTSTRAP JQUERY ANGULARJS TUTORIALS REFERENCES EXAMPLES Blog
 

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

Property
sizes Yes Not supported Yes Not supported Yes

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