# Working around IE7 issue

**URL:** <https://forum.kirupa.com/t/working-around-ie7-issue/220057>\
**Category:** Uncategorized\
**Created:** [March 22, 2007, 7:44am UTC](https://forum.kirupa.com/t/working-around-ie7-issue/220057 "2007-03-22T07:44:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Head\_In\_A\_Pan](https://avatars.discourse-cdn.com/v4/letter/h/c67d28/32.png) [@Head\_In\_A\_Pan](https://forum.kirupa.com/u/Head_In_A_Pan)\
**Post date:** [March 22, 2007, 7:44am UTC](https://forum.kirupa.com/t/working-around-ie7-issue/220057/1 "2007-03-22T07:44:40Z")

</div>

This is related to my last post but on a different track - maybe this is a better approach…

I’m trying to adapt an old piece of javascript to allow it to work with IE7 (which it wont… yet)

At the start of my js there is a line of code:

var ns = (navigator.appName.indexOf(“Netscape”) != -1);  
which detects if netscape & makes some sort of rule (I am new at this - bear with me)

And in my searches for a IE7 equivalent I have found:  
ie7=(this.ver.indexOf(“MSIE 7”)\>-1 && this.dom)?1:0;

If this is the same sort of thing, how do I adapt it to my code?

Any suggestions?
