close browser page from activeForm

Posted on 2009-12-21
Last Modified: 2013-11-23
running an activeForm inside activeX on a browser.
is there a way to close the active browser's window from within the activeForm ?
Question by:controlr
    LVL 25

    Accepted Solution

    I suppose you will have to link a JavaScript (or other script) function to a custom event of your activeX.
    In this JavaScript function, you can close the browser window.

    Check this for the syntax of the javascript event assignment
    LVL 25

    Expert Comment

    Of course, you will have to declare first your event in your activeX type library

    Author Closing Comment

    no code example given

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Join & Write a Comment

    Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
    In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now