I have a site that should not run in any version of IE , when they try to open the url I want a background-image to appear, site is not supported in IE .
Is this possible?
I put this solution in my code:
<script type="text/javascript">
function msieversion() {
var ua = window.navigator.userAgent;
var msie = ua.indexOf("MSIE ");
// Se for o IE, retorna a versão
if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./))
return parseInt(ua.substring(msie + 5, ua.indexOf(".", msie)));
else
// Se estiver usando outro navegador, retorna 0
return 0;
return false;
}
var IE = msieversion();
if (IE !== 0) {
document.body.style.backgroundImage = "url('http://i.stack.imgur.com/mTXDZ.jpg')";
// Fazer algo a mais aqui ...
} else {
// O usuário usa outro navegador
}
</script>
and it worked but not the way I wanted to see the image of how it was:
I would like that only the background appears and nothing else wanted that as if my site ceases to exist in ie