Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Close Lightbox from within Script?
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Close Lightbox from within Script?
#11795
Close Lightbox from within Script? 13 Years, 1 Month ago Karma: 0
I am using the lightbox as a frame for sending an eMail to one of our members using our own custom code. Is there any way in my own code that I can force the lightbox to close once they have sent the eMail?
The administrator has disabled public write access.
 
#11796
Re:Close Lightbox from within Script? 13 Years, 1 Month ago Karma: 747
Hello,

The following javascript code can be used into iframe that close lightbox:

Code:


parent.window['SexyLightbox'].close();



For example the next code can be placed into iframe content that add link which will close lightbox:

Code:


<a href="#" onclick="parent.window['SexyLightbox'].close(); return false;">Close</a>



Regards,
ARI Soft
The administrator has disabled public write access.
 
Go to topPage: 1