aspose file tools*
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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Opening a new Non Child Window  " Watch "Opening a new Non Child Window  " New topic
Author

Opening a new Non Child Window

Vijaypal Singh
Ranch Hand

Joined: May 25, 2004
Posts: 31
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 window.open() 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
Sheriff

Joined: Oct 17, 2001
Posts: 4313

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

So please post your replies there, thanks!
Eric Pascarello
author
Rancher

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

You may be able to do a window.open() 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.

Eric
Vijaypal Singh
Ranch Hand

Joined: May 25, 2004
Posts: 31
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 = window.open(..);
myWin.opener = null;

If that's what you were after...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Opening a new Non Child Window