Skip to main content
Participant
December 9, 2024
Answered

button ClickToGoToWebPage open in "self"

  • December 9, 2024
  • 2 replies
  • 259 views

Hi In animate I made buttons with the code link to webpage.

this.tweedim_btn.addEventListener("click", fl_ClickToGoToWebPage);
 
function fl_ClickToGoToWebPage_2() {
window.open("https://www.webpage","self");
}

When I place the publiched file on a webpage, all links open in a new tab, default the code is set to "blank", I first changed the url without a goal.. and then with "self", but either way it opens in a new tab instead of in the same screen. What is the matter, the solution?

thanks a lot, Marja

 

    This topic has been closed for replies.
    Correct answer JoãoCésar17023019

    Hi.

     

    You need an underscore before self. So instead of "self" it should be "_self".

     

    Regards,

    JC

    2 replies

    JoãoCésar17023019
    Community Expert
    JoãoCésar17023019Community ExpertCorrect answer
    Community Expert
    December 9, 2024

    Hi.

     

    You need an underscore before self. So instead of "self" it should be "_self".

     

    Regards,

    JC

    ArttrustAuthor
    Participant
    December 9, 2024

    Thanks a lot, Yes ofcourse............

    jane-e
    Community Expert
    Community Expert
    December 9, 2024

    @Arttrust 

    I've moved your post from Using the Community to the Adobe Animate forum.

    Jane