Given the form
below:
<form id="myForm" action="index.php">
<input type="hidden" name="action" value="list" />
<input type="submit" />
</form>
How can I get the value for the action
property of the form (index.php) using IE6?
Hint: I have tried
document.getElementById('myForm').action
and
document.getElementById('myForm').getAttribute('action')
But neither of them work. They both return the input
field (document.getElementById('myForm').action.value == 'list'
).