i want javascript code to check if am using mozilla or not

Tis is the most reliable method when checking for authentic mozilla browser editions.

javascript: if(document.body.style.MozAppearance==""){ alert('mozilla')} //b.b. Troy III p.a.e.

you will get the alert box only if you are rruning one of mozillas editions FX Flok etc.

Or perhaps even better reliability by going this way:

javascript: if("MozAppearance" in document.body.style){ alert('mozilla')} //b.b. Troy III p.a.e.
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.