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


Recent Events
  • 23/11/2024 Black Friday 2024

    BIG SALE, 30% discount for all our extensions. Use BF24 coupon code. Hurry up the discount is valid till 3 December.

  • 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.


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 colorbox from link
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Close colorbox from link
#11771
Close colorbox from link 13 Years, 9 Months ago Karma: 0
Is there a way to close Colorbox from a hyperlink in an iframe?

Example:
I open a text in a Colorbox iframe (rcontent)
In the text is a hyperlink
on click of this link, Colorbox closes and opens the linked page in the normal window.
The administrator has disabled public write access.
 
#11772
Re:Close colorbox from link 13 Years, 9 Months ago Karma: 760
Hello,

You can place the following code into iframe content:

Code:


<a href="javascript:void(0);" onclick="(parent.window['jQueryACB'] || parent.window['jQuery']).colorbox.close(); return false;">Close</a>



Regards,
ARI Soft
The administrator has disabled public write access.
 
#11773
Re:Close colorbox from link 13 Years, 9 Months ago Karma: 0
Thanks, and if I want to close + link to a specific URL?
The administrator has disabled public write access.
 
#11774
Re:Close colorbox from link 13 Years, 9 Months ago Karma: 760
Use the following code:

Code:


<a href="http://www.ari-soft.com" target="_top" onclick="(parent.window['jQueryACB'] || parent.window['jQuery']).colorbox.close();">Close and navigate to ARI Soft</a>



or the next code:

Code:


<a href="http://www.ari-soft.com" target="_top">ARI Soft</a>



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