
META HTTP-EQUIV refresh
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.5
Toggle automatic content retrieval
(Priority
1
)
-
Provision
1
:
Allow configuration so that the user agent only retrieves content on explicit user request.
Procedure
- This page automatically refreshes every 5 seconds.
- Configure the user agent to only refresh content on explicit user request.
Run test
Expected results
- The user agent may satisfy this requirement by alerting the user of the refresh rate specified in content, and allowing the user to request fresh content manually.
Source code
<meta http-equiv="Refresh" content="5; URL=0305-REFRESH.html"/>
<script language="JavaScript" type="text/javascript">
document.write("Number of automatic refreshes: " + hitCt + " ")
</script>
Test Script Code
expireDate = new Date
expireDate.setMonth(expireDate.getMonth()+6)
hitCt = eval(cookieVal("pageHit"))
hitCt++
document.cookie = "pageHit="+hitCt+";expires=" + expireDate.toGMTString()
function cookieVal(cookieName) {
thisCookie = document.cookie.split("; ")
for (i=0; i<thisCookie.length; i++) {
if (cookieName == thisCookie[i].split("=")[0]) {
return thisCookie[i].split("=")[1]
}
}
return 0
}
-
HTML 4.01 specification for META
-
HTML 4.01 specification for HTTP-EQUIV
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/12/23 15:52:06 $ by $Author: mcmay $
Copyright
© 1999 - 2003
W3C®
(
MIT
,
INRIA
,
Keio
), All Rights Reserved. W3C
liability
,
trademark
,
document use
and
software licensing
rules apply.