Hi to all,
Hope you all are fine.I have a javascript to check whether java is installed or not on your system.The code is
<body>
<script language="Javascript" type="text/javascript">
if(!navigator.javaEnabled()){
alert('Enable your java to expeirience this java enhanced page or\n try install it...');
location.replace('http://java.sun.com');
window.open('instructionsforintallingjava.html');
}
else{
document.write('<applet watever></applet>');
}
</script>
<noscript>
Enabled javascript please
</noscript>
</body>
The problem is this work fine in my browser firefox and internet explorer8 but in old internet explorer browser and a new browser named fix browser and some version of firefox also this won't work, can any one tell me why this is happening and how can i overcome this.
Also in the
location.replace('installing java.html');
i have an applet in case when applet doesn't appear this installing page instruction appear in place of applet. I show a link in the replace location.
The problem is when i clink on this link it open page in the small portion reserve for applet. I want when people click on this link it open in the new page. Please tell me how i do this also.
Thanks in advance