JavaScript snippet to open popup window

Skuidward Tentacles (Raymond)Skuidward Tentacles (Raymond) ๐Ÿ’Ž๐Ÿ’Ž
edited October 15, 2019 in Questions
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.

Comments

  • edited December 29, 2016
    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);
  • Skuidward Tentacles (Raymond)Skuidward Tentacles (Raymond) ๐Ÿ’Ž๐Ÿ’Ž
    edited October 15, 2019
    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!
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!