Skip to content Skip to sidebar Skip to footer

Fancybox Opening Hyperlinks In Same Popup Window

I am using the fancybox iframe (as can be seen here in the iframe demo) http://fancyapps.com/fancybox/demo/ Here is the code i am using

https://stackoverflow.com/a/8808761/1055987 for more.

Change it to any other URL, preferably one of your own.

Solution 2:

Is the problem that it is opening inside the fancybox? If so you can add a target="_blank" to the href and it will open in a new tab/window. The html in your document that is iFramed will look like this:

<h3>Item 1</h3>
  Blah blah blah text here
  <atarget="_blank"href="http://www.google.com"><imgsrc="https://www.google.com/images/srpr/logo3w.png"width="160"height="25"border="0"alt="Google logo" /></a>

Solution 3:

Web sites with sensitive user data often block framing by adding an HTTP header callled X-Frame-Options to their pages to prevent clickjacking attacks. There isn't much that you can do about it, other than proxying the page through your own server.

Post a Comment for "Fancybox Opening Hyperlinks In Same Popup Window"