How can I close pop up windows is using a 'click anywhere'method with DHE. Several links in my index opens as a pop up windows. The links loads pages from other web seits. I am looking for the way close to one pop up when somebody opens other. I hope that you can understand what I mean.
Let's make it more clear
You are at my site. You click a link it opens a pop up window with BBC world News. Then you click a second it opens with CNN. I just looking for some method to close first pop up with BBC while opening the second pop up with CNN.
There are some Popup Close Methods, but I have no idea how I can use it with DHE.
Posted - 12 Apr 2006 : 09:06:27 - First of all create a script tag into the header code of your page - Then open each popup assigning the result to a variable
ex: var myWin=window.open("youraddress.htm")
- For closing the popup you need the reference to this window (myWin) Simply write myWin.close();
In DHE you can create your own functions (myOpenWindow and myClosePopups) and call them using events.