I have 2 separate functions in a javascript.
Function one opens a window with
win1 = window.open (....);
Function two closes the window:
win1.close();
If those actions are in one function it is working but not in the separate functions as above. It somehow looses the object win1 from one function to another.
Any help would be very welcome!
You can also define
win1globally: