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.:
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.Code:<input type="button" class="button" value="Close Window" onclick="window.close();" />
How do I overcome this?




ARPAN
Reply With Quote