This page is In Progress

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

systemId

Property of dom/DocumentTypedom/DocumentType

Syntax

var 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;
    // Displays "http://www.w3.org/TR/html4/strict.dtd"
    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 pages

Attributions