W3CWeb Accessibility Initiative Home

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.

Test 1 :

Procedure

  1. Configure the user agent to prompt the user to confirm (or cancel) any form submission.
  2. Change the option value of the select field in the test form.

Run test

Test form 1:

Expected results

  1. 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(); }

References

  1. HTML 4.01 specification for ONCHANGE

About this test suite

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 $