Disable button display in Mozilla Firefox

I am working on a website and have a button on that page as a bookmark. However, when I go to Mozilla Firefox, it displays the same button to mark as a bookmark. Is there a way to disable the button in Mozilla Firefox to only show up in Internet Explorer at this point using Javascript?

Please do not use browser-sniffing techniques. They died out with the dinosaurs because there are much more appropriate techniques to use these days.

Sniffing for Netscape doesn’t prevent the same problem from occurring on the hundreds of other types of web browsers that are out there.

A more appropriate solution is to use an Internet Explorer specific technique called conditional comments, which causes no problems on all other web browsers.


<!--[if IE]>
<script type="text/javascript" src="bookmark.js"></script>
<![endif]-->

Hi, you can do it like this

if(navigator.appName == ‘Netscape’)
{
// code for hiding button
}