Javascript How-ToAsk your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
How can I open a document that is already opened in a frame of a page in a new window with a function like newWindow(). How can I get its URL and put it as a content in the new window?
Thanks.
Using standard code you can't, it's a security restriction. In a low security setting you can using the shell.application class. Search google groups for examples containing that class within the last two years authored by myself, Joe Fawcett. I don't have the stuff with me at the moment because I'm away from office. Basically you create a shell.application and loop through the collection retuned by its windows method. Thos gives all open windows and you can examine url's etc.