forked from illacceptanything/illacceptanything
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.docx
33 lines (28 loc) · 828 Bytes
/
README.docx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
hi
<html>
<body>
<h1>W3Schools Internal Note</h1>
<div>
<blink><b>To:</b> <span id="to"></span><br></blink>
<marquee><b>From:</b> <span id="from"></span><br></marquee>
<b>Message:</b> <span id="message"></span>
</div>
<script>
var txt, parser, xmlDoc;
txt = "<note>" +
"<to>Tove</to>" +
"<from>Jani</from>" +
"<heading>Reminder</heading>" +
"<body>Don't forget me this weekend!</body>" +
"</note>";
parser = new DOMParser();
xmlDoc = parser.parseFromString(txt,"text/xml");
document.getElementById("to").innerHTML =
xmlDoc.getElementsByTagName("to")[0].childNodes[0].nodeValue;
document.getElementById("from").innerHTML =
xmlDoc.getElementsByTagName("from")[0].childNodes[0].nodeValue;
document.getElementById("message").innerHTML =
xmlDoc.getElementsByTagName("body")[0].childNodes[0].nodeValue;
</script>
</body>
</html>