-
How to Close an unknown BrowserWindow
I have a great problem ...
I want to close new opened browser window, which name is unknown.
In JavaScript there are no possibilities to close this new window, so i have
to try this attempt in java.
Please, i you can answer my question, so tell me your solution.
Thank you ... schmaddy
-
Re: How to Close an unknown BrowserWindow
If you want to write a Windows program to close another window, you have to
know something about that other window. (I expect it's the same in Unix;
you didn't say what OS you are using.) Even if you did, there is nothing in
Java to do that.
schmaddy <schmaddy@yahoo.com> wrote in message
news:394f7100$1@news.devx.com...
>
> I have a great problem ...
> I want to close new opened browser window, which name is unknown.
> In JavaScript there are no possibilities to close this new window, so i
have
> to try this attempt in java.
>
> Please, i you can answer my question, so tell me your solution.
>
> Thank you ... schmaddy
-
Re: How to Close an unknown BrowserWindow
I just realized -- maybe that means, close the window the JavaScript is
running in! If that's what you want to do then according to the JavaScript
documentation:
Closing a Window
You can close a window with the close method. You cannot close a frame
without closing the entire parent window.
Each of the following statements closes the current window:
window.close()
self.close()
close()
(end quote)
And if you created the window yourself in JavaScript, by newWindow =
window.open(URL), then just do newWindow.close().
schmaddy <schmaddy@yahoo.com> wrote in message
news:394f7100$1@news.devx.com...
>
> I have a great problem ...
> I want to close new opened browser window, which name is unknown.
> In JavaScript there are no possibilities to close this new window, so i
have
> to try this attempt in java.
>
> Please, i you can answer my question, so tell me your solution.
>
> Thank you ... schmaddy
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks