Skip to main content
Participant
Dec 9, 2024 10:39 AM UTC
Answered

button ClickToGoToWebPage open in "self"

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 is closed to new replies. Start a new post to keep the conversation going.
    JoãoCésar17023019
    JoãoCésar17023019Correct answer
    Community Expert
    Dec 9, 2024 11:19 AM UTC

    Hi.

     

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

     

    Regards,

    JC

    5 replies

    JoãoCésar17023019
    Community Expert
    JoãoCésar17023019Community ExpertCorrect answer
    Community Expert
    Dec 9, 2024 11:19 AM UTC

    Hi.

     

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

     

    Regards,

    JC

    Translate
    ArttrustAuthor
    Participant
    Dec 9, 2024 12:38 PM UTC

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

    Translate
    jane-e
    Community Expert
    Community Expert
    Dec 9, 2024 10:50 AM UTC

    @Arttrust 

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

    Jane

    Translate