function
funMake() {
for
(
var
i=0, j=0; i<document.getElementById(
'd1'
).childNodes.length; i++, j++) {
document.write(document.getElementById(
).childNodes[i].nodeName +
' : '
);
).childNodes[j].innerHTML +
'<br />'
}
document.write(
'<br /><br />'
if
(i%2 != 0) {
<!DOCTYPE html>
<
html
>
head
meta
charset
=
"utf-8"
/>
title
>New Page</
script
src
"js/script.js"
></
</
body
div
id
"d1"
p
>Hello World!</
>Привет Мир!</
>To be or not to be?</
funMake();