chromium/chrome/test/data/password/recurring_dynamic_form.html

<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>