Hexagora Forum
Hexagora Forum
Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Dynamic HTML Editor
 Dynamic HTML Editor
 Pop up (..Uuupps..)
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

blackreligon
Practical

Germany
18 Posts

Posted - 11 Apr 2006 :  23:04:31  Show Profile  Visit blackreligon's Homepage  Reply with Quote
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]

s.dav
Site Admin

Italy
3364 Posts

Posted - 12 Apr 2006 :  09:06:27  Show Profile  Visit s.dav's Homepage  Reply with Quote
- 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.

Regards, Davide
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Hexagora Forum © s.dav Go To Top Of Page
Snitz Forums 2000