X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY ANGULAR XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

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

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates FREE Website Templates Free HTML Templates

SHARE THIS PAGE

facebook