File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Opening a new Non Child Window  Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Opening a new Non Child Window  " Watch "Opening a new Non Child Window  " New topic

Opening a new Non Child Window

Vijaypal Singh
Ranch Hand

Joined: May 25, 2004
Posts: 34
I have a specific requirement where I hava to open a new Window on a click of a button,but the catch is that I cannot use the ususl javascript because it return the new window as the child to the parent window.I would like to open the new new window as an individual window as we do by opening a fresh window.Is it really possible??Does anybody as any idea how to achieve this??can igenerate some event simalar ti ctrl+n??
Looking forward to a feasible response,
[ December 09, 2004: Message edited by: Vijaypal Singh ]

---------------------------------<br />S.C.J.P 1.4(86%),S.C.W.C.D 1.4(88%)<br /> <br />God Must love crazy people...<br />He Makes so many of them.
Peter Chase
Ranch Hand

Joined: Oct 30, 2001
Posts: 1970
This question is about JavaScript, not Java. Completely different thing.

Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.
Jessica Sant

Joined: Oct 17, 2001
Posts: 4313

I'm moving this to the HTML/JavaScript forum.

So please post your replies there, thanks!
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
You can try a basic link with target="_new", not sure if there is a relationship there.

You may be able to do a and refresh the parent window, and it might loose the relationship to the parent, but there is nothing you can do.

Only two things I can think of after just waking up.

Vijaypal Singh
Ranch Hand

Joined: May 25, 2004
Posts: 34
Thanks,Eric..I believe this will lead me to some kind of solution or at least a new dimention in thinking about the solution.
Sonny Gill
Ranch Hand

Joined: Feb 02, 2002
Posts: 1211

I havent tested it, but you should be able to set the opener property of the window to null.
myWin =;
myWin.opener = null;

If that's what you were after...
I agree. Here's the link:
subject: Opening a new Non Child Window
jQuery in Action, 3rd edition