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

Button - Running a JavaScript to open a hyperlink

Explorer ,
Jun 16, 2017 Jun 16, 2017

Copy link to clipboard

Copied

I've never coded in java before so I'm not exactly sure how to do this.

I want to set the properties of a button I created to run a Javascript that will simply open up a hyperlink. I tried adding a hyperlink on top of the button but then the other functions of the button stop working.

What is the exact code I have to input in the "Run a JavaScript" options menu in order to open a hyperlink?

TOPICS
Acrobat SDK and JavaScript

Views

359

Translate

Translate

Report

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 , Jun 16, 2017 Jun 16, 2017

You don't need to use JavaScript (not Java) to do that. There's a built-in command under the button's Actions tab to open a web link... Just add it, enter the URL, and you're done.

Votes

Translate

Translate
Community Expert ,
Jun 16, 2017 Jun 16, 2017

Copy link to clipboard

Copied

You don't need to use JavaScript (not Java) to do that. There's a built-in command under the button's Actions tab to open a web link... Just add it, enter the URL, and you're done.

Votes

Translate

Translate

Report

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
Explorer ,
Jun 16, 2017 Jun 16, 2017

Copy link to clipboard

Copied

LATEST

I can't believe I missed that.

Thank you!

Votes

Translate

Translate

Report

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