Reputation: 181
I am developing Wordpress website. But most of function not displayed in IE8 browser. So i planed to show browser upgrading warning but its not working. Could any one help me.
<script>
var $buoop = {vs:{i:9,f:15,o:12.1,s:5.1},c:2};
function $buo_f(){
var e = document.createElement("script");
e.src = "//browser-update.org/update.js";
document.body.appendChild(e);
};
try {document.addEventListener("DOMContentLoaded", $buo_f,false)}
catch(e){window.attachEvent("onload", $buo_f)}
</script>
Upvotes: 0
Views: 661
Reputation: 66490
You can use IE conditional comment:
<!--[if lt IE 9]>
<script src="//browser-update.org/update.js"></script>
<![endif]-->
Upvotes: 1
Reputation: 193
you can try this
<!--[if IE 5]>
<script language="Javascript">
<!--
alert ("It looks like you aren't using Internet Explorer 7. To see our site correctly, please update.")
//-->
</script>
<![endif]-->
<!--[if IE 5.0]>
!--
alert ("It looks like you aren't using Internet Explorer 7. To see our site correctly, please update.")
//-->
</script>
<![endif]-->
<!--[if IE 5.5]>
!--
alert ("It looks like you aren't using Internet Explorer 7. To see our site correctly, please update.")
//-->
</script>
<![endif]-->
<!--[if IE 6]>
!--
alert ("It looks like you aren't using Internet Explorer 7. To see our site correctly, please update.")
//-->
</script>
<![endif]-->
Upvotes: 0