Prob with window.open from view workaround

I am using javascript to open a form in a pop-up window (window.open). For whatever reason I cannot get this to work from a view action and having looked through the forum realise I am not alone. In order to work around this I am have created a dummy form. From the view action a dummy document is composed. In the onLoad event of the form is the js required to open the pop-up window. All works fine. The only problem is that I want to close the document when the pop-up opens. If I put Source.close in the QueryClose event of the doc, it does exactly what I need but the pop-up is not displayed. It’s open, but focus is on the view. How can I close the document and still have the window at the front? Or is there a way I can close the doc from the javascript?

Subject: Prob with window.open from view workaround

I’m using R5, but it works like a charm for me in both the action itself and when the action calls a function in the View Template that does the same thing.

window.open(‘http://www.google.com’,‘googlewindow’,‘menu=YES’);

self.close();

If you want to avoid the close window warning, you could use document.location.href top open your new url in the same window if you’re not concerned about the other window properties.