Confirm Automatic Form Submission
On this page:
Test
1 |
References
|
About these tests
Nearby:
More HTML 4.01 Tests
|
UAAG 1.0 Test Suite
UAAG 1.0 Requirement
-
Checkpoint
5.5
Confirm form submission
(Priority
2
)
-
Provision
1
:
Allow configuration to prompt the user to confirm (or cancel) any form submission.
Procedure
- Configure the user agent to prompt the user to confirm (or cancel) any form submission.
- Change the option value of the select field in the test form.
Run test
Expected results
- The user agent should prompt the user to confirm or cancel the form submission before submitting the test form in response to the onchange event.
Source code
<div>
<p>Test form 1:</p>
<form action="../action/return.html" method="get" id="testForm" name="testForm" enctype="application/x-www-form-urlencoded">
<select id="select1" onchange="submitForm()" name="select1">
<option value="0" selected="selected">Choose an option</option>
<option value="1">Option 1</option>
<option value="2">Option 2</option>
<option value="3">Option 3</option>
</select>
</form>
</div>
Test Script Code
function submitForm()
{
document.testForm.submit();
}
-
HTML 4.01
specification for
ONCHANGE
This test is part of a
test suite
for the
User Agent Accessibility Guidelines (UAAG)
1.0
. This work is conducted by the
User Agent Accessibility Guidelines Working
Group
, which is part of W3C's
Web Accessibility Initiative (WAI)
. Please send comments on this test to w3c-wai-ua@w3.org (
public archive
).
Test created by:
Last modified: $Date: 2004/03/09 18:53:29 $ by $Author: jongund $
Copyright
© 1999 - 2003
W3C®
(
MIT
,
INRIA
,
Keio
), All Rights Reserved. W3C
liability
,
trademark
,
document use
and
software licensing
rules apply.