Skip to main content
Participant
June 22, 2022
Question

help whit link button

  • June 22, 2022
  • 1 reply
  • 151 views

I have two projects with navigation buttons, when I click on the next button from the last frame of the first project it takes me to the first frame of the next project, how can I make the button before from the second project take me back to the final frame of the first project?

 

this.prevButton.addEventListener("click", fl_ClickToGoToWebPage_1);

function fl_ClickToGoToWebPage_1() {

window.open("../3 _Como_ocurre", "_self");

}

    This topic has been closed for replies.

    1 reply

    kglad
    Community Expert
    Community Expert
    June 23, 2022

    that should work if your first project publishes index.html in a 3_Como_ocurre folder that has the same parent folder that contains your 2nd project.

     

    but i'm doubtful you understand all that.  what's the code for your next button and does it work?

    Participant
    June 23, 2022

    of course, both projects are exported with index.html, my problem is to fix that the preview button takes me to the last frame of the first project and not the first

     

    kglad
    Community Expert
    Community Expert
    June 23, 2022

    append a query string to your 2nd project's index.html and use it in the 1st project to determine whether to goto the last frame.