Property of dom/DocumentTypedom/DocumentType
Syntaxvar result = element.systemId;
element.systemId = value;
Examples
The following example shows the systemId property with respect to a !DOCTYPE directive.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>IE9 Doctype Sample: SystemId</title>
<meta name="x-ua-compatible" content="ie=9">
<script type="text/javascript">
function showInfo() {
var s = document.doctype.systemId;
alert( s );
}
</script>
</head>
<body>
<button onclick="showInfo();">Click Me!</button>
</body>
</html>
Notes Remarks
The value of the systemId property corresponds to the URL attribute of a !DOCTYPE directive.
Syntax Standards information See also Related pagesMicrosoft Developer Network: [Windows Internet Explorer API reference Article]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4