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


Recent Events
  • 05/09/2017 BIG Autumn SALE

    Use AUTUMN17 coupon code to buy our WordPress or Joomla! extensions with 25% discount. Hurry up! The offer is valid till 11 September.

  • 14/04/2017 Happy Easter

    Wish a Happy Easter and give 30% discount for all our WordPress and Joomla! extensions. Use EASTER17 coupon code. The offer is valid till 17 April.


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 6 Years, 7 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 6 Years, 7 Months ago Karma: 667
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 6 Years, 7 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 6 Years, 7 Months ago Karma: 667
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