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 ...
“The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
—Tim Berners-Lee, W3C Director and inventor of the World Wide Web
“The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
—Tim Berners-Lee, W3C Director and inventor of the World Wide Web
Hi Charles
I realy appreciate the help. JavaScript stays one of my constant headaches, I cannot seem to wrap my mind around it.
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.
I need you to more fully explain what you are trying to accomplish. At first I thought you had two window and now it looks loke you have three.
“The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
—Tim Berners-Lee, W3C Director and inventor of the World Wide Web
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 ...
Bookmarks