Meta schemeProperty

Meta 对象参考手册Meta Object

Definition and Usage

The scheme property sets or returns the format used to interpret the value of the content property.

Syntax

Set the scheme property:

linkObject.scheme="format"

Return the scheme property:

linkObject.scheme


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the scheme property.


Example

Example

This example returns the format used to interpret the value of the content property:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Example (example.com)</title>
<meta name="revised" content="2011-02-03" scheme="YYYY-MM-DD">
<script>
function displayResult(){
    var x=document.getElementsByTagName("meta")[0].scheme;
    alert(x);
}
</script>
</head>
<body>

<button type="button" onclick="displayResult()">Show meta scheme</button>

</body>
</html>

Try it Yourself »


Meta 对象参考手册Meta Object Other Extensions