media-controls-when-javascript-disabled.html 651 B

1234567891011121314151617181920212223242526
  1. <html>
  2. <head>
  3. <style> #error { display: none; } </style>
  4. <script>
  5. function showErrorMsg()
  6. {
  7. document.getElementById('error').style.display = 'block';
  8. }
  9. </script>
  10. </head>
  11. <body onload="showErrorMsg()">
  12. <p>TEST: Video should have controls when scripting is disabled.</p>
  13. <video
  14. src="http://movies.apple.com/movies/us/apple/ipoditunes/2007/touch/ads/apple_ipodtouch_touch_r640-9cie.mov">
  15. </video>
  16. <noscript><p>Scripting is DISABLED.</p></noscript>
  17. <p id=error>ERROR: JavaScript must be disabled for this test.</p>
  18. </body>
  19. </html>