5
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

ごく単純な IE 除け

Posted at
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />

        <!-- ここから -->
        <style>
            @media all\0{
                body{display:none}
                html:after{content:"現在お使いのブラウザではご利用いただけません"}
            }
        </style>
        <script>
            document.documentMode&&document.execCommand("Stop")
        </script>
        <!-- ここまで -->

        <script>
            alert("IE では実行されない")
        </script>
    </head>
    <body>
        IE では表示されない
    </body>
</html>

まず "Internet Explorer" という言葉を思い浮かべる。
そしてゆっくりこう唱えるんだ。
"存在しない"と。

5
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?