Greetings ya’all
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 …
<a href=”javascript:self.close();” onclick=”goAndClose(‘../mydoc.pdf’)”>Document1</a>
<script>
<!–
function goAndClose(page)
{
opener.location.href = page
this.close;
}
//–>
</script>