Skip to main content
luisv20399914
Known Participant
June 16, 2017
Answered

Button - Running a JavaScript to open a hyperlink

  • June 16, 2017
  • 1 reply
  • 607 views

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?

This topic has been closed for replies.
Correct answer try67

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.

1 reply

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
June 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.

luisv20399914
Known Participant
June 16, 2017

I can't believe I missed that.

Thank you!