java-ans.mkii / last modification: 2020-01-30 14:15
%D \module
%D   [       file=java-ans,
%D        version=1998.06.01,
%D          title=\CONTEXT\ JavaScript Macros,
%D       subtitle=Answer Analization,
%D         author=Hans Hagen,
%D           date=\currentdate,
%D      copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for 
%C details. 

\startJSpreamble{Do_Check_Answer} used later 

  function Do_Check_Answer (field, value) 
   { if (event.value.toLowerCase()==value.toLowerCase())
       { = true }
     % { = display.hidden }
     return("\040") } // funny, "" does not work


\startJScode{Check_Answer} uses {Do_Check_Answer}
  event.value = Do_Check_Answer(JS_S_1, JS_S_2) ;