Discussion Forums > The Lounge

I'm making my own website and would like your help with some stuff :)

<< < (2/11) > >>

buchno:
Here is the easiest way I've found thus far:

--- Quote from: http://www.devin.com/ieblock_howto.shtml ---JavaScript Method

This is a good fallback if you aren't able to use any server-executed code. It has the benefit of being fairly difficult to defeat, since it works on the browser's appName property, which is usually hardcoded into the browser and is difficult to change. The disadvantages are that, first, it will annoy users of browsers that don't use javascript; second, it will permit entry by MSIE users when they have JavaScript disabled. The <meta> redirect will attempt to cope with browsers that don't support or aren't configured to use JS.

    Move your index.html file to another filename as above.
    Place the following in a new index.html file:

    <html>
    <head>
            <meta http-equiv="refresh" content="1;
    URL=http://www.domain.com/realhomepage.html">
    </head>
    <body>
    <script language="javascript">
    <!--
    if (navigator.appName == "Microsoft Internet Explorer") {
            document.location = "http://www.domain.com/ie_reject.shtml";
    } else {
            document.location = "http://www.domain.com/realhomepage.html";
    }
    // -->
    </script>
    </body>
    </html>

    Adjust the URLs accordingly.
--- End quote ---

Havoc10K:
I'll test that after dinner, but I know why this will work, IE is simply stupid :)

kitamesume:
whats the hate with IE? lol

Havoc10K:
Cuz it's stupid ?

rathoriel:

--- Quote from: Havoc10K on April 05, 2012, 02:23:16 PM ---Cuz it's stupid ?

--- End quote ---
Your Stupid

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version