HTMLLinkElement.as

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The as property of the HTMLLinkElement interface returns a DOMString representing the type of content being loaded by the HTML link, one of "script", "style", "image", "video", "audio", "track", "font", "fetch".

Syntax

var as = HTMLLinkElement.as
HTMLLinkElement.as = as

Value

A DOMString.

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
as
50
17
56
No
37
10
50
50
56
37
10
5.0

© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/as