• I have made a widget space on top of the header. I then made a search bar and FB likes, twitter etc on that. It was working fine on Chrome and Mozilla.

    But IE just stops showing the website. So I removed that widget and then everything was fine again.

    So I just want to show that widget above header when the browser is either chrome or mozilla but not when its IE.

    I came through this on google :

    <script type="text/javascript">
    
    if(navigator.userAgent == "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; Tablet PC 2.0; .NET4.0C)" )
    {
      //do nothing
    }
    else
    {
      //widget code
    }
    </script>

    But the problem is my widget code consists of HTML, IFrame and Javascripts. So it dosent works properly when I put it under the else loop as it itself is a part of javascript.

    Any Clue ?

  • The topic ‘[Browser Problem] Hiding Widget in IE’ is closed to new replies.