Skip to main content
paulas88620265
Participating Frequently
October 24, 2022
Question

Ayuda con "Self" y "Blank" en Animate CC

  • October 24, 2022
  • 1 reply
  • 158 views

hola..

Estoy trabajando en un proyecto de MAPA INTERACTIVO hecho en Animate CC.

Lo subo a una columna de Elementor dentro de Wordpress (Xampp - server local) .. estoy usando este código

 

 

this.boton_adobe.addEventListener("click", fl_ClickToGoToWebPage_1);
function fl_ClickToGoToWebPage_1() {
	window.open("https://www.google.com", "_self");

 

 

el problema que tengo....  usando "SELF" abre el link dentro del contenedor y vuelve a cargar la pagina completa de destino dentro del contenedor.. me queda una pagina dentro de otra pagina.. 2 paginas.. y yo quiero que quede solo la pagina de destino del link.

 

por ejemplo .. tengo una pagina princial y un destino

la pagina principal es www.adobe.com  y la pagina destino es www.google.com

 cuando hago click en un distrito quiero que abra google, pero fuera del contenedor.. EL PROBLEMA es que abre adentro del contendor .. 

 

en este ejemplo... ese codigo no me abre el link correctamente... yo quiero que me lleve a la pagina de google de forma normal.. pero solo abre google adentro del contenedor.. la única forma es usar "blank" .. pero abre en una nueva pestaña y no es lo que quiero..

 

espero puedan ayudarme.. saludos a todos

    This topic has been closed for replies.

    1 reply

    kglad
    Community Expert
    Community Expert
    October 24, 2022

    i'm not sure what you're trying to explain, but see if the following does what you want:

     

    	window.open("https://www.google.com", "_blank");
    paulas88620265
    Participating Frequently
    October 24, 2022

    thanks for answering...

     

    It's not what I need to do... surely it's because I don't know how to explain myself and in the translation it gets worse using "_blank" is the other alternative... it should be the last alternative..

     

    I want to use "_self" to open on the same page... but outside the Wordpress "Elementor" container in the "Elementor" Container

     

    I use this code

    <iframe frameborder="0" height="500" scrolling="no" src="http://127.0.0.1/map/images/district/index.html" width="310%"></iframe>

     

    in "Index.html".. is the interactive map made in Animate CC

    kglad
    Community Expert
    Community Expert
    October 24, 2022

    is your canvas project in one part of an iframe and one the same page, there's another iframe in which you want the new window to appear?