Given the following form:
<form id="test" action="http://www.example.com/" method="post">
<input type="hidden" name="action" value="example">
What will document.forms.test.action and document.forms.test.getAttribute('action') be?
The former is the hidden field, the latter is the form's action.
var form = new Object();
form.action = test.getAttribute('action');