How to run javascript on Chrome or Firefox browser

Viewed 1473

I'm using javascript in my jsp file, on IE11 it run good, but I can not run and display on Chrome or Firefox browser, I have try to convert to jquery but no ok

This is my jsp:

<head>
   <script language="javascript">

   // functions
   function examStart()
   {
       ... 
   }

   function goout_onclick()
   {
       ...
   }
   function GetQ()
   {
       ...  
   }
   <script>
 </head>

<body>
     <input type="image" src="<%= imagesDir%>/bt_start.gif" <% if(yn_sametime.equalsIgnoreCase("N")) { %> onClick="JavaScript:examStart();" <% } else { %> onclick="JavaScript:examStart();" <% } %> id="startbutton" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('startbutton','','<%= imagesDir%>/bt_start_up.gif',1)" name="startbutton">
</body>

This is error happend from debug console:

Uncaught ReferenceError: ScriptEngineMajorVersion is not defined
TypeError: Cannot read property '-1' of undefined

How to run javascript on Chrome or Firefox?

1 Answers
Related