Button - Running a JavaScript to open a hyperlink

Explorer ,
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?

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

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.

TOPICS
Acrobat SDK and JavaScript

Views

136

Likes

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

Button - Running a JavaScript to open a hyperlink

Explorer ,
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?

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

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.

TOPICS
Acrobat SDK and JavaScript

Views

137

Likes

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
Jun 16, 2017 0
Most Valuable Participant ,
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.

Likes

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
Reply
Loading...
Jun 16, 2017 0
Explorer ,
Jun 16, 2017

Copy link to clipboard

Copied

I can't believe I missed that.

Thank you!

Likes

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
Reply
Loading...
Jun 16, 2017 0