How can I prevent IE from displaying a website? [closed]


Tags: javascript,html,css

Problem :

We all knows that IE has so many problems in opening html and rendering css files.

I want IE to show nothing when open a page.

How can I do this?



Solution :

You can use conditional comments and clear out your page!

<!--[if IE]>
<script>
window.onload = function() {
    document.body.innerHTML = 'Please choose a better browser!';
}
</script>
<![endif]-->

    CSS Howto..

    How to fix image urls when processing css files with Gulp?

    How to align text next to a div?

    How do I properly set width to a percentile and keep a min-width in pixels?

    how to clear all css styles

    (CSS) Set Id for Class How to Use

    How to set 2 images to be by the side of each other

    How to add style or put a class in a php form_submit button

    How to embed css in xml?

    How to perfectly center a “plus” sign in a circle using CSS

    How to have a two headings in same line with css?

    How to expand text to full DIV width

    Show text-decoration when hover over div

    how to fade-out/blur div's borders with css?

    How to adapt a flex div's width to content

    How could I get a layout like the one shown in the attached image? [closed]

    How can I apply a style to a div using CSS as long as that div does NOT contain an element with a certain id?

    How to link an external stylesheet in CSS

    How to remove width with center DIV

    How to get at Apache Wicket PropertyColumn data to dynamically change CSS class based on content?

    How do I use “:nth-of-type” to select an element after the element is updated by jQuery?

    How to make hovering over a class to trigger changes in other classes?

    How to place the text after thumbnails at the bottom?

    How to change buttons to pictures in jquery dialog

    How to get rid of the bottom shadow in label of the css tabs

    how to simulate mouse hover on image in css

    How to fix animation problems css3

    How to format text using CSS

    How to properly adjust CSS Form Select field if content is larger than image

    How to apply more than 1 CSS styles in javaScript? [duplicate]

    How to move the jQueryUI close button on the dialog over the top of top right corner?