Skip to main content
Participant
June 16, 2021
Question

Do you have a problem with Adobe Animate iframe URL Links opening up in frames on a WordPress site?

  • June 16, 2021
  • 0 replies
  • 305 views

 

Here's a Solution:
One of the best ways to break out of the frames is  as follows:
1. You have to add the code...

<base target="_parent">
....to the HEAD of the page where you are getting the links stuck in frames. (If you don't know how to add content to the HEAD of the particular page where your movie is embedded in WordPress website, visit https://mrvirk.com/how-to-add-code-to-head-tag-in-wordpress.html)


2. Next set the code in your adobe animate project to match the example below

this.MYBUTTON_A.addEventListener("click", fl_ClickToGoToWebPage);


function fl_ClickToGoToWebPage() {
window.open("WWW.MYWEBSITE.COM/SOME  DIRECTORY/YOUR LINK/","_parent");
}

That's it.
Here's a link for a further explanation if you are interested:
https://stackoverflow.com/questions/1037839/how-to-force-link-from-iframe-to-be-opened-in-the-parent-window

    This topic has been closed for replies.