blob: 935c2f07bf8dead296776ac8a7639fcf01152baa [file] [log] [blame]
<html>
<script>
function addForm() {
var dynamicForm = document.createElement('form');
dynamicForm.setAttribute('method', 'post');
dynamicForm.setAttribute('action', 'done.html');
dynamicForm.setAttribute('onsubmit', 'return true;');
var inputUsername = document.createElement('input');
inputUsername.setAttribute('type', 'text');
var inputPassword = document.createElement('input');
inputPassword.setAttribute('type', 'password');
var submitButton = document.createElement('input');
submitButton.setAttribute('type', 'submit');
submitButton.setAttribute('value', 'Submit');
dynamicForm.appendChild(inputUsername);
dynamicForm.appendChild(inputPassword);
dynamicForm.appendChild(submitButton);
document.body.appendChild(dynamicForm);
}
</script>
<body>
</body>
</html>