I have created a website where the visitor can click on a link, whereupon he gets a popup in which he can choose between two PDF documents to be displayed, Currently when he clicks on either link, the popup closes and displays the chosen document in the parent window. Which is actually fine, but I want the popup to close and open the chosen document in a new (fullscreen) window. The parent window from which the popup was opened should also stay open.
Below the script I am currently using ...
Ok, with your script above the following happens. When I click on Document1 I get a message "This programm is trying to close this window" If I say "yes" the parent window closes, the popup stays open, and the document1 opens in a new window.
I want to keep the parent window open, close the popup and open the Document1 in a new full window.
On window 1 I have a link "Documents", when the user clicks on it it opens window 2 (the popup) here the visitor can choose Document1 or Document2. If he clicks on either of them, the popup should close and open the selected document (pdf format) in a new window 3. Window 1 should stay open throughout all of this.
I would have included direct links to the documents, unfortunately I have a bit of a space problem on the page and the client requested it this way. The client is king, right?
Thanx again ...