6 document
.getElementById('posted-text').value
= 'text-entered';
7 document
.getElementById('posted-password').value
= 'password-entered';
8 document
.getElementById('form-to-submit').submit();
12 <body onload=
"setTimeout(onLoad, 0);">
13 <form id=
"form-to-submit" action=
"posted.php" method=
"post"
14 enctype=
"multipart/form-data">
15 Text to input:
<input id=
"posted-text" type=
"text" name=
"posted-text"/><br>
17 <input id=
"posted-password" type=
"password" name=
"posted-password"/><br>
18 <input type=
"submit" value=
"Submit" />