Results 1 to 3 of 3

Thread: window.close()

Threaded View

  1. #1

    Thread Starter
    Frenzied Member arpan_de's Avatar
    Join Date
    Oct 2005
    Location
    Mumbai, India
    Posts
    1,394

    Question window.close()

    Using the Web Browser control, I have created a browser. As such the browser is working fine but there's a problem.

    Many website make use of JavaScript to close a pop-up window. For e.g. window.close() or self.close(). Here's an e.g.:

    Code:
    <input type="button" class="button" value="Close Window" onclick="window.close();" />
    Now what I find is when such a button or link is clicked in a web page, the web page closes but the Form still remains open. Have a look at the 2 images below. Note the Close this window button at the bottom in the 1st image. When I click this button, all I get to see is the 2nd image i.e. the entire Form doesn't close when the button was clicked; only the web page vanished.

    How do I overcome this?
    Attached Images Attached Images   


    ARPAN

    IF YOU HAVE AN APPLE & I HAVE AN APPLE AND WE EXCHANGE THE APPLES, THEN YOU & I WILL STILL HAVE ONE APPLE BUT IF YOU HAVE AN IDEA & I HAVE AN IDEA AND WE EXCHANGE OUR IDEAS, THEN EACH OF US WILL HAVE TWO IDEAS!

    NOTHING IS IMPOSSIBLE IN THIS WORLD.....EVEN THE WORD IMPOSSIBLE SAYS I'M POSSIBLE!

    PRACTICE MAKES A MAN PERFECT BUT NOBODY IS PERFECT; SO WHY PRACTICE?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width