0

I've built my website and it looks fine in chrome, Firefox and basically any web browser other than IE. Does anyone know any code that will direct the user straight to my error page if the user loads the site in IE?

thanks

Ryan
  • 19
  • 1
  • 1
  • 5

1 Answers1

0

Try this:

if(navigator.userAgent.toLowerCase().search(".net") > -1){

    location.href = "error.html/" //error.html is used as a dummy page. Use your own error page url.

}
DripDrop
  • 994
  • 1
  • 9
  • 18