Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hide a specific DIV if browser is IE6

I have a DIV on my site that calls a few external javascripts... unfortunatley the vendor does not support IE6. This script is in the global footer, so its on every page.

I get the error that our https site is passing content that is not secure, would you like to view the content...blah blah...

Is is possible to just hide this div if the browser is IE6??

<div id="get-satisfaction">
<style>
a#fdbk_tab {
top:60px;

}
</style>


<script type="text/javascript" charset="utf-8">


  //content here

</script>
</div>
like image 922
tony noriega Avatar asked Dec 28 '22 17:12

tony noriega


1 Answers

    <!--[if IE 6]>
    <style>#DIVID {display: none;}</style>
    <![endif]--> 

A better option is to detect the browser server side and not render the javascript tag if it's IE6.

like image 55
sreimer Avatar answered Jan 20 '23 00:01

sreimer