# Problem with window.close

**URL:** https://forum.kirupa.com/t/problem-with-window-close/168568
**Category:** Uncategorized
**Created:** [November 8, 2005, 9:48am UTC](https://forum.kirupa.com/t/problem-with-window-close/168568 "2005-11-08T09:48:35Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![flash007](https://avatars.discourse-cdn.com/v4/letter/f/4bbf92/32.png) [@flash007](https://forum.kirupa.com/u/flash007)
#### Post date: [November 8, 2005, 9:48am UTC](https://forum.kirupa.com/t/problem-with-window-close/168568/1 "2005-11-08T09:48:35Z")

</div>

Hi,

## I am having this problem… I am having two functions.

var pdfWin;

## function fOpenPDF() { pdfWin = window.open(‘documents/tlilnk-manual.pdf’,‘pdfWin’,‘fullscreen=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,scroll=no,height=600,width=800,left=0,top=0’); }

## function fPDFClose() { pdfWin.close(); }

I am calling fOpenPDF on a button click and fPDFClose on unload but this is not working…  
could anybody tell me why???  
help needed very very urgently…
