I had written javascript calculation for hotel accommodation system.
The calculation part is working in Mozila fire fox, but it is not working in IE6.
I checked the internet options in IE6 and enabled active scripting, still it is not working.Is there any other option. Please give me the solution its very urgent.

It probably is enabled, but you may have an error in your JavaScript that IE is picking up. The other browsers will sometimes be more lax in their error checking.

show the code, for the script that does not work

Member Avatar for rajarajan2017
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<title>Browser Details...</title> 
<script language="javascript" type="text/javascript"> 
function details() { 
window.onerror=null; 
if (navigator.javaEnabled() < 1) document.frmDetails.java.value="No"; 
if (navigator.javaEnabled() == 1) document.frmDetails.java.value="Yes"; 

} 

</script> 
</head> 

<body onload="details();"> 


<form name=frmDetails> 
<table border=1 width=499> 

<tr> 
<td> 
java enabled:</td> 
<td align=center><input type=text size=3 maxlength=3 name=java></td> 
</tr> 

<tr> 
<td colspan=2 align=center> 
<input type=button name=again value="Refresh?" onclick="details();"></td> 
</tr> 
</table> 
</form> 

</body> 
</html>

Execute the above code to know whether Java is enabled in your browser or not.

validate the code, html is fubar
a standards compliant browser would not render that,
xhtml requires all values quoted in html attributes, attribute='value'

methods for navigator.javaenabled true/false,
try something like

if (navigator.javaEnabled()) document.frmDetails.java.value="Yes";
else document.frmDetails.java.value="No";
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.