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

Button - Running a JavaScript to open a hyperlink

Explorer ,
Jun 16, 2017 Jun 16, 2017

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
570
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 , 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.

Translate
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.

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

I can't believe I missed that.

Thank you!

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