Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9244331
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T09:00:02+00:00 2026-06-18T09:00:02+00:00

Blocking IE is definitely not best practice, but it’s something in my requirements for

  • 0

Blocking IE is definitely not best practice, but it’s something in my requirements for an existing application. What’s the most effective way to do that since conditional comments aren’t available in IE 10? For IE 9 and below this will work:

<!--[if IE]>
<script type="text/javascript">
window.location = "/IEblocked.html";
</script>
<![endif]-->

Assuming there’s a best practice JavaScript solution, what gotchas might I find? I’m wondering if there might be issues around the following:

  • Order of events firing
  • iframe elements that are beyond my control
  • Precedence of a JS solution in the context of other <script> tags
  • Scripts loaded via the document.write('<script type="text/javascript" src="foo.js"></script>'); method.

I have a feeling a lot of folks might be compelled to shout out “use Modernizr” and “Are you crazy, don’t put scripts in the DOM that way!”, unfortunately the application is large and some enhancements are outside the scope at this point.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T09:00:04+00:00Added an answer on June 18, 2026 at 9:00 am

    Well, IE is the only browser supporting client side VBScript.

    So just add this to your pages: (except in IEblocked.html itself of course)

    <script type="text/vbscript">
    Document.Location = "IEblocked.html"
    </script>
    

    I know for a fact it’s working in IE9 and below. This comment pretty much proves it’s still working just fine in IE10 and as for the future I came across this blog post by Eric Lippert: Rumours of VBScript’s Death Have Been Greatly Exaggerated which contains the following paragraph:

    We will continue to support VBScript and JScript for the foreseeable future. Obviously VBScript, JScript, WSH, etc, must continue to be shipped with the operating system forever, as huge amounts of existing business-critical code depends upon them. To characterize that as “dying a slow death” is excessively melodramatic. We expect that the unmanaged COM scripting languages will continue to be useful for many, many years. The Visual Studio Sustaining Engineering Team presently is responsible for VBScript, JScript, Windows Script Components, Windows Script Host, etc.

    Although posted over 8 years ago, I strongly belive we still have long years of VBScript existence in the core of Windows, and future versions of Internet Explorer will keep using it.

    To sum things up, I have contacted Eric directly and asked “How long will VBScript will be supported, as client side language, in Internet Explorer versions?”. In response, he said:

    There are still many corporate clients who depend on VBScript in the browser, so MSFT would be foolish to drop support for it. It is very cheap to support, and losing good will of even a small number of customers is expensive.

    He’s no longer working in Microsoft so his answer is not official but it’s the closest I can get and not years old blog post but directly from the source. All things considered, I can conclude that using the above code is going to work for many more years to come. 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Whilst asynchronous IO (non-blocking descriptors with select/poll/epoll/kqueue etc) is not the most documented thing
I know non-blocking receive is not used as much in message passing, but still
I have a bounded blocking queue in an application that was written several years
Does blocking mode put that particular task in a Process Wait state, as i
I made a small 'blocking queue' class. It irritates me that I have created
I have a blocking queue of objects. I want to write a thread that
I have a blocking function that executes an asynchronous MySQL query and returns the
My employer is blocking the Google CDN domain that provides the jQuery file to
I'm working on a plugin that causes something to happen in selected elements when
I have non blocking UDP socket in perl created this way my $my_sock =

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.