HTML DOM type Property
Complete Link Object Reference
Definition and Usage
The type property sets or returns the MIME type of the target URL (like
"text/css", "text/javascript", "image/gif", etc.).
Syntax
linkObject.type=MIME_type
|
Example
The following example returns the MIME type of the target URL:
<html>
<head>
<link rel="stylesheet" type="text/css"
id="style1" href="try_dom_link.css" />
</head>
<body>
<script type="text/javascript">
x=document.getElementById("style1");
document.write("MIME type: " + x.type);
</script>
</body>
</html>
|
Try-It-Yourself Demos
Get the
MIME type of a <link> element
Complete Link Object Reference
Want To Be A Web Master?
If you want to be a Web Master, you will have to host your web site with an ISP (Internet Service Provider).
MaximumASP offers seven different configurations of dedicated servers to meet your Windows and .NET hosting needs.
Hosted on our multi-tiered Enterprise Class network, these servers provide the performance, security and reliability
you need to host your high end web sites and applications.
Visit MaximumASP
|