Hi to all,
hope you all will be fine, I use a script to detect IE and Mozilla but the problem is when i run it in the firefox it won't work then i find out the name of navigator and it shows Netscape. How i detect Mozilla here is my scrip, it works fine but how i detect mozilla thanks. If i check that _app=='Mozilla' it shows unsupported browser. Thank you. One thing more is it required to enclose my script in <!-- -->.

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
<html lang="en">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<script language="Javascript" type="text/javascript">
      alert('Enable your java to expeirience this java enhanced page or\n try install it...');
      var _app = navigator.appName;
      if (_app == 'Netscape') {
         document.write('<embed code="CapturePlayback1.class"',
      else if (_app == 'Microsoft Internet Explorer') {
         document.write('<OBJECT ',
                        '<PARAM name="code" value="CapturePlayback1.class">',
                        '<PARAM name="archive" value="CapturePlayback1.jar">',
                        '<PARAM name="name" value="BrightAmericans">',
                        '<PARAM name="mayscript" value="true">',
       else {
          document.write('<p>Sorry, unsupported browser.</p>');



Enabled javascript please



Recommended Answers

All 5 Replies

I could be wrong but i dont think there is one, as far as I know, when u use


, the result in Mozilla will be Netscape.

So if the code checks for Netscape it would work in Firefox

Hi :) ,
Hope you will be fine. Oooooops :ooh: thanks yup i think you are right, because after changing to netscape it works on Mozilla firefox :P
Thank you :icon_lol:


Don't forget to mark the thread as solved.

How i mark my thread solved :?:
Thank you

Sorry for asking its so simple just click on Mark as Solved :)

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.