Web Analytics Made Easy -
StatCounter Code Error - need help hiding text in JS - CodingForum

Announcement

Collapse
No announcement yet.

Code Error - need help hiding text in JS

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Code Error - need help hiding text in JS

    <h1><a href="http://www.mozilla.org">
    <script language="JavaScript" type="text/javascript">
    <!-- hide this from other browsers
    if (navigator.appName == "Microsoft Internet Explorer")
    document.writeln("Download Mozilla... much better.");
    //done hiding
    </script>

    </a>
    </h1>

    so if you check my site with IE you'll get the msg that you need to get mozilla but if use any other browser then it won't show and that's what exactly I want it to do!
    However if I use this code up in the beginning of the page everything get screwy if I don't use <p></p> then i lose next image if I use the <p></p> i lose the whole text aaaaaaah can you improve this code for me?
Working...
X