'defer' Example : defer « HTML Attributes Reference « HTML CSS Reference






'defer' Example

<html>
<head>
<SCRIPT LANGUAGE="Javascript" defer='false'>
function returnIslandRootName()
{
  var islandRoot = document.all["mySrc1"].XMLDocument;
  alert(islandRoot.nodeName);
}
</SCRIPT>
<SCRIPT LANGUAGE="XML" id="mySrc1">
<offerings>
 <class><materials>This should render.</materials><time>1.5
hr</time></class>
</offerings>
</SCRIPT>
</head>
<body>
<button onclick="returnIslandRootName()">Test the XML Data Island</button>
</body>
</html>


      
      








Related examples in the same category

1.'defer' Syntax and Note
2.defer is applied to