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 1014401
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T10:14:56+00:00 2026-05-16T10:14:56+00:00

I am developing an HTA that will run as a kiosk in our reception

  • 0

I am developing an HTA that will run as a kiosk in our reception area. This kiosk can display web-pages that launch new windows using the window.open() method.

What I want to do is handle window.open() from within my HTA, so instead of spawning an Internet Explorer window, the new window will appear in a floating iframe inside the HTA.

Any ideas as to how I’d go about doing this?

Here is some pseudocode showing an ideal scenario (although I’m aware the actual solution will probably be more complicated).

function onWindowDotOpen(obj)
{
   spawnNewIframeTab(obj); // Handle the event in the HTA
   return false; // Stop the default behaviour from firing
}

Is there a VBScript solution at all?

  • 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-05-16T10:14:57+00:00Added an answer on May 16, 2026 at 10:14 am

    I solved my specific problem by overriding the “window.open” of the loaded IFRAME. You can do this in an HTA, but it won’t work in a regular browser.

    <iframe onload="iframe_onload(this)" src="..."...></iframe>
    <script type="text/javascript">
    iframe_onload = function(obj)
    {
        $(obj).contents().get(0)
        frame.frames.window.open = function(url, name, features, replace)
        {
            ...
        }
    }
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Developing Java, you have always learned that its best to create an ArrayList by
While developing with Java in Eclipse it was very handy: you can attach sources
I developing window application in C#. I created one installer with this windows application.
When developing a website, I often need to test scenarios like this: When user
when developing C++ with VS you have this amazing feature of data breakpoints, which
Developing for WM 6, I call CreateWindow with hWndParent set to the window I
Developing using MVC-3, Razor, C# Been searching around and cannot find advice I'm looking
While developing a new site I stop periodically and test all new functionality in
Im developing a custom view engine for implementing themes for my asp.net mvc 2
Im developing an asp.net mvc 2 project and I would like to implement the

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.