T O P I C R E V I E W |
blackreligon |
Posted - 11 Apr 2006 : 23:04:31 Hallo everybody,[2 ok]
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.
http://www.cgiscript.net/cgi-script/csNews/csNews.cgi?database=js_windows%2edb&command=viewone&id=9&op=t
It's great if someone can help me.
Best regards for all BR[3 :z]
|
1 L A T E S T R E P L I E S (Newest First) |
s.dav |
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. |