what it actually does is basically triggering the printPanel after pressing the button. Using the listener it should close the window after 10 seconds, I'm almost sure it is in the wrong position, but I put it inside the () in the this.printpanelWin.show(); and didn't work either.

when I used this.printpanelWin.alert(1), it appeared this error in firebug: "this.printpanelWin is undefined", this appears exactly after 10 seconds , the same if I delete "this", so it's working! it's definitely getting somewhere , thanks Jennifer for your nice support and neat mood

If the code was setTimeout("alert(1)",..., then it would have worked fine without the error. However, since the error happened after 10 seconds that means that setTimeout is working. It's just a matter of closing the window now.

I am not sure but maybe using 'this' is causing the issue. When I tried it with 'this' it gave me an error 'this.mywindow is undefined'. Is it possible for you to remove 'this.' from your window name? Let me know

I think so too, "this" seems to be the problem. This "this" option is quite tricky, I searched about changing this functionality and still doing the same but didn't find anything in google, any ideas? thanks again