W3CWeb Accessibility Initiative Home

Toggle scripts on and off

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 3.4 Toggle scripts (Priority 1 )
Provision 1 : Allow configuration not to execute any executable content (e.g., scripts and applets).

Test 1 :

Procedure

  1. Configure the user agent to not execute the script contained within this page.
  2. Configure the user agent to execute the script contained within this page.

Run test

Expected results

  1. The user can configure the user agent to not execute the script contained within this page.
  2. When scripting is toggled to off, the number in the text box does not increase.
  3. The user can configure the user agent to execute the script contained within this page.
  4. When scripting is toggled to on, the number in the text box increases.

Source code

<form method="post" action="../action/return.html" name="counterForm" id="counterForm" enctype="application/x-www-form-urlencoded">
  <label for="counterDisplay">This number increases while scripting is toggled on:</label>
  <input type="text" size="8" name="counterDisplay" id="counterDisplay"></input>
</form>

Test Script Code

var secs=0; function write() { secs=secs+1; document.counterForm.counterDisplay.value=" "+secs+""; setTimeout("write()",1000); } setTimeout("write()",1000);

References

  1. HTML 4.01 specification for SCRIPT

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: 2003/04/02 23:46:35 $ by $Author: jongund $