Skip to main content
Nintex Community Menu Bar
Question

JavaScript snippet to open popup window

  • July 10, 2024
  • 2 replies
  • 26 views

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.

This topic has been closed for replies.

2 replies

Forum|alt.badge.img+3
  • 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);


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!