Skip to main content
buksori
Inspiring
January 24, 2021
Answered

window open

  • January 24, 2021
  • 2 replies
  • 1048 views


var _this = this;
_this.button.on('click', function(){
window.open('http://www.adobe.com', '_blank');
});

 

According to the above script, Adobe web page will be open on a new window.

 

How can I open the Adobe web page on the window itself, but on a new window?

 

Help me please!

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

    Hi.

     

    Use '_self' instead of '_blank'.

    var _this = this;
    
    _this.button.on('click', function()
    {
        window.open('http://www.adobe.com', '_self');
    });

     

    Regards,

    JC

    2 replies

    JoãoCésar17023019
    Community Expert
    JoãoCésar17023019Community ExpertCorrect answer
    Community Expert
    January 26, 2021

    Hi.

     

    Use '_self' instead of '_blank'.

    var _this = this;
    
    _this.button.on('click', function()
    {
        window.open('http://www.adobe.com', '_self');
    });

     

    Regards,

    JC

    buksori
    buksoriAuthor
    Inspiring
    January 27, 2021

    Thank you for your help.
    Thank you.

    buksori
    buksoriAuthor
    Inspiring
    January 24, 2021

    Sorry..

    How can I open the Adobe web page on the window itself, but NOT on a new window?

    Legend
    January 24, 2021
    buksori
    buksoriAuthor
    Inspiring
    January 26, 2021

    Thank you for your help.

    Although I visited the above site you suggested, I couldn't find my needs.(maybe because my English is not good)

    =========

    var _this = this;
    _this.button.on('click', function(){
    window.open('http://www.adobe.com', '_blank');
    });

    =========

    I used the above script on Animate 2021 action window.

    I hope you will make the action script example opening the target address on the existing browser, please.

    Thank you.