function
funMake() {
for
(
var
i=0; i<document.forms.length; i++) {
document.getElementById(
'd1'
).innerHTML += document.forms[i].name +
'<br />'
;
}
<!DOCTYPE html>
<
html
>
head
meta
charset
=
"utf-8"
/>
title
>New Page</
script
src
"js/script.js"
></
</
body
form
action
"#"
name
"form0"
input
type
"text"
"txt0"
"submit"
"perform"
value
"OK"
br
"form1"
div
id
"d1"
funMake();