Web accessibility service pageWeb accessibility service page

6.3:H106102 When using Script language, one should provide alterative when Script is not supported

Improper design

The improper design below is when SCRIPT do not function properly, there was no text explanation replacing the SCRIPT content.

Improper design:

  <SCRIPT language="VBScript">
  <!--
  Sub Game_OnClick
  in the tien-mu baseball stadium, the score for the sun team to king-kong is 1 to 2, 
  in tai-chong baseball stadium, the score for the Shin-nong team to the brothers is 4 to 0"
  End Sub
  -->
  </SCRIPT>
          

Proper demonstration

When SCRIPT do not function properly, us NOSCRIPT label to show NOSCRIPT content.

Proper example:

  <SCRIPT language="VBScript">
  <!--
  Sub Game_OnClick
  MsgBox "in the tien-mu baseball stadium, the score for the sun team to king-kong is 1 to 2, 
  in tai-chong baseball stadium, the score for the Shin-nong team to the brothers is 4 to 0"
  End Sub
  -->
  </SCRIPT>
  <NOSCRIPT>
  <P>Today¡¦s baseball score: in the tien-mu baseball stadium, 
  the score for the sun team to king-kong is 1 to 2, 
  in tai-chong baseball stadium, the score for the Shin-nong team to the brothers is 4 to 0
  </P>
  </NOSCRIPT>
          
End of Main Content