-
Notifications
You must be signed in to change notification settings - Fork 0
/
custom.js
32 lines (23 loc) · 1.06 KB
/
custom.js
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
function infos(sname,fname,mname,num,mail) {
document.getElementById("myList").innerHTML = "";
var node = document.createElement("LI");
var textnode = document.createTextNode("Name: " + sname);
node.appendChild(textnode);
document.getElementById("myList").appendChild(node);
var node = document.createElement("LI");
var textnode = document.createTextNode("Father's Name: " + fname);
node.appendChild(textnode);
document.getElementById("myList").appendChild(node);
var node = document.createElement("LI");
var textnode = document.createTextNode("Mother's Name: " + mname);
node.appendChild(textnode);
document.getElementById("myList").appendChild(node);
var node = document.createElement("LI");
var textnode = document.createTextNode("Phone Number: " + num);
node.appendChild(textnode);
document.getElementById("myList").appendChild(node);
var node = document.createElement("LI");
var textnode = document.createTextNode("E-Mail: " + mail);
node.appendChild(textnode);
document.getElementById("myList").appendChild(node);
}