зеркало из https://github.com/mozilla/gecko-dev.git
17 строки
325 B
HTML
17 строки
325 B
HTML
|
<html>
|
||
|
<body>
|
||
|
<h1>document.load() test</h1>
|
||
|
<script>
|
||
|
var xmlDoc = document.implementation.createDocument("", "test", null);
|
||
|
|
||
|
function documentLoaded(e) {
|
||
|
alert(xmlDoc.getElementById("id1").firstChild.nodeValue);
|
||
|
}
|
||
|
|
||
|
xmlDoc.addEventListener("load", documentLoaded, false);
|
||
|
|
||
|
xmlDoc.load("test.xml");
|
||
|
</script>
|
||
|
</body>
|
||
|
</html>
|