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

Can I use javascript to open a URL?

Explorer ,
Oct 26, 2022 Oct 26, 2022

Copy link to clipboard

Copied

First, client demands force me to use an alias to my targeted URL.  If I want the button to load "https://www.mynavyhr.navy.mil/", I have to create a .htm file that contains this:

 

<HTML>
<HEAD>
<TITLE></TITLE>
<meta http-equiv="refresh" content="0; URL='https://www.mynavyhr.navy.mil/'" />
</HEAD>
<BODY>
</BODY>
</HTML>

 

and then point my Captivate button to that .htm file to load the site.  It opens fine in a new tab.

Can I do this with javascript, but open the URL in a new browser window - not just another tab?  The tab has an effect on the main Captivate timeline when I close the tab.

Thanks!!!

 

Views

36

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
community guidelines
Advisor ,
Oct 26, 2022 Oct 26, 2022

Copy link to clipboard

Copied

You could try the following on a button

 

 

window.open("https://www.mynavyhr.navy.mil/", "_blank", "toolbar=yes,scrollbars=yes,resizable=yes");

 

You'll just set the success action as Execute JavaScript and put the code in the Script Window.

Hopefully that helps you get going in the right direction.

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
community guidelines
Explorer ,
Oct 27, 2022 Oct 27, 2022

Copy link to clipboard

Copied

LATEST

First, thank you for your suggestion.

Apparently there is a popup blocker that's not permitting the page from opening.

Thanks again!

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
community guidelines