I use javascript in my jsp file, in IE11 it works fine, but I cannot run and display in Chrome or Firefox browser, I try to convert to jquery, but not ok
This is my jsp:
<head>
<script language="javascript">
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 a bug from the debug console:
Uncaught ReferenceError: ScriptEngineMajorVersion is not defined
TypeError: Cannot read property '-1' of undefined
How to run javascript in Chrome or Firefox?
source
share