Is there a way to block my website in IE and let it work in all other browsers-Collection of common programming errors
basically I have this code on my website that IE seems to have a lot of trouble with and keeps crashing and stuff, The good news is there is a 99.9% chance that the users that will be on my site will not be using IE, so I want to make my website available to all other browsers except IE. If they are using IE I just want a message saying something like “Unfortunately this website is not available in this browser” or something like that. Can I do this, if so, How?, im guessing JavaScript, right?
-
You can wrap your page content in conditional comments.
http://msdn.microsoft.com/en-us/library/ms537512%28v=vs.85%29.aspx
The page content for all other browsers.
-
I would really suggest to fix what’s broken instead. Otherwise, I suggest conditional comments(but rather not the whole body, just to refresh to a different website)
-
Can be done in pure HTML:
-
Do it on the server side using the
User-agent
request header, that way you don’t have to send all your page or could even send an alternate version. -
Do nothing!
Just wait a year or tow and Microsoft will give you this for free 😉