HTML | DOM Link type Property Last Updated : 22 Aug, 2022 Comments Improve Suggest changes Like Article Like Report The DOM Link type Property is used to set or return the content type or MIME type of the linked Document. For eg. text/css", "text/javascript", "image/gif", etc. Syntax: It returns the type property.linkObject.typeIt is used to set the type property.linkObject.type = MIME-type Property Values: It contains the value i.e MIME-type which is used to specify the MIME-type of the linked Document. Return Value: It returns a string value which represents the content type of the linked Document. Example: This Example returns the type Property. HTML <!DOCTYPE html> <html> <head> <link id="linkid" rel="stylesheet" type="text/css" href="styles.css"> </head> <body style="text-align:center;"> <h1>GeeksForGeeks</h1> <h2>DOM Link type Property</h2> <button onclick="gfg()">Get URL </button> <p id="pid" style="font-size:25px; color:green;"> </p> <script> function gfg() { // return Link type Property var NEW = document.getElementById( "linkid").type; document.getElementById( "pid").innerHTML = NEW; } </script> </body> </html> Output: Before Clicking On Button: After Clicking On Button: Supported Browsers: Google ChromeMozilla FirefoxEdgeSafariOpera Comment More infoAdvertise with us Next Article HTML | DOM Link type Property M manaschhabra2 Follow Improve Article Tags : Web Technologies HTML HTML-DOM Similar Reads HTML | DOM Link rel Property The HTML | DOM Link rel Property in HTML DOM is used to set or return the value of the rel attribute of a linked document. The rel attribute is used to specify the relation between the current document and the linked document. Syntax: It returns the rel property.linkObject.relIt is used to set the r 3 min read HTML | DOM Input URL type Property The DOM Input URL type Property in HTML DOM is used for returning the Which type of form element the URL field is. This Property will always return "URL".Syntax: urlObject.type Return Value: It returns a string value which represent the type of form element the URL field is. Example: This Example il 1 min read HTML | DOM Ul type Property The HTML DOM Ul type Property is used to sets or returns a value of the type attribute of a <ul> Element. Note: This property is no longer supported in HTML5. Syntax: It returns a ul type Property.ulObject.typeIt is used to set the ul type property.ulObject.type = "disc/circle/square"; Propert 2 min read HTML | DOM Object type Property The HTML | DOM Object type Property is used to set or return the value of a type attribute of a <object> element. The type attribute is used to specify the Internet type of MIME type of the Object. Syntax: It returns the type property.objObject.typeIt is used to set the type property.objObject 1 min read HTML | DOM Link href Property The HTML | DOM Link href Property is used to set or return the URL of a Linked Document. Syntax: It return the href property.linkObject.hrefIt is used to Set the href property.linkObject.href = URL Property Values: It contains the value i.e URL which specify the URL of the link. absolute URL: It poi 2 min read HTML DOM Link media Property The HTML DOM link media property is used to set or return the value of the media attribute of an <link> element. The media attribute is used to specify what type of media devices the target resource is optimized. Syntax: It is used to return the media property. linkObject.media; It is used to 1 min read HTML DOM Anchor type Property The Anchor type Property in HTML DOM is used to set or return the value of the type attribute of a Link. The type attribute is used to specify the MIME type of the target URL and it is usually purely advisory. Syntax: It returns the Anchor type Property. anchorObject.type It is used to set the Ancho 2 min read HTML DOM Script type Property The DOM Script type Property is used to set or return the value of the type attribute of a <script> element. The type attribute is used to specify the MIME type of a script. and identify the content of the <script> Tag. It has a Default value which is "text/javascript". Syntax: It is use 2 min read HTML | DOM Link hreflang Property The DOM Link hreflang Property is used to set or return the value of the hreflang attribute of a linked document. The hreflang attribute is used to specify the language for a linked document. Syntax: It return the hreflang property.linkObject.hreflangIt is used to set the hreflang property.linkObjec 2 min read HTML | DOM Link disabled Property The DOM Link disabled Property is used to set or return whether the linked document is disabled or not. This Property is only used with stylesheet links. Syntax: It return the disabled property:. linkObject.disabledIt is used to set the disabled property. linkObject.disabled = true|false Property Va 2 min read Like