Skip to main content
Nintex Community Menu Bar
Question

JavaScript snippet to open popup window

  • July 10, 2024
  • 2 replies
  • 7 views
  • Translate

Forum|alt.badge.img+17

Anyone have a snippet handy to open a non-Skuid popup window? I need to open a site in a separate browser window, but I don’t want it to be a tab like the redirect action.

Did this topic help you find an answer to your question?
This topic has been closed for comments

2 replies

Forum|alt.badge.img+3
  • 13 replies
  • July 10, 2024

Try the window.open(URL, name, specs) method. Making name equal to ‘_blank’ should ensure a new window.

For example, the following when run should open a new window the size of the current screen with google as the webpage of choice:

window.open(‘https://www.google.com’, ‘_blank’, ‘width=’ + screen.width + ‘,height=’ + screen.height);

Translate

Forum|alt.badge.img+17

Well, that was a lot simpler than I expected! I modified it to be so width and height were set to specific pixel amounts. Thanks for the help!

Translate

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings