Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

button ClickToGoToWebPage open in "self"

Community Beginner ,
Dec 09, 2024 Dec 09, 2024

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

 

233
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Dec 09, 2024 Dec 09, 2024

Hi.

 

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

 

Regards,

JC

Translate
Community Expert ,
Dec 09, 2024 Dec 09, 2024

@Arttrust 

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

Jane

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 09, 2024 Dec 09, 2024

Hi.

 

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

 

Regards,

JC

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 09, 2024 Dec 09, 2024

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 09, 2024 Dec 09, 2024
Ah, ofcourse..............
thanks a lot
Marja
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 09, 2024 Dec 09, 2024
LATEST

Hi JC,

 

It is now working, but another problem ocurred. The page with the animation and links buttons to the 'main'website is situated in an iframe. The links now all open in the iframe.. and that is ofcourse not what we want. 

The first link should open in a new frame.. and then after that in the same.. Would that be possible?

regards, Marja

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines