Change the window name in your two different calls:

function popitup(url,windowName) {
       newwindow=window.open(url,windowName,'height=200,width=150');
       if (window.focus) {newwindow.focus()}
       return false;
     }

windowName must be unique when you open a new window with same url otherwise the same window will be refreshed.

Answer from Umesh on Stack Overflow
🌐
JavaScript.info
javascript.info › tutorial › frames and windows
Popups and window methods
The open call returns a reference to the new window. It can be used to manipulate its properties, change location and even more. In this example, we generate popup content from JavaScript:
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › API › Window › open
Window: open() method - Web APIs | MDN - Mozilla
By default, window.open opens the page in a new tab. If popup is set to true, it requests that a minimal popup window be used. The UI features included in the popup window will be automatically decided by the browser, generally including an address bar only.
🌐
Quackit
quackit.com › javascript › popup_windows.cfm
JavaScript Popup Windows
If you only want to open a new browser window you can add the target="_blank" attribute within the <a> element (see this article on opening a new window in HTML). JavaScript popup windows however, are more powerful. Using JavaScript's window.open() method, you can determine what the window ...
🌐
W3Schools
w3schools.com › jsref › met_win_open.asp
Window open() Method
More examples below. The open() method opens a new browser window, or a new tab, depending on your browser settings and the parameter values.
🌐
Javascript-coder
javascript-coder.com › window-popup › javascript-window-open
Using the window.open method | JavaScript Coder
The Code below opens a popup window ... <script type="text/javascript"> function poponload() { testwindow = window.open("", "mywindow", "location=1,status=1,scrollbars=1,width=100,height=100"); testwindow.moveTo(0, 0); } </script> <body onload="javascript: poponload()"> <h1>JavaScript ...
🌐
HTML.com
html.com › javascript › popup-windows
Popup Windows Made Easy: Here's The JavaScript Code To Copy And Paste »
March 19, 2020 - The entire list of properties goes inside quotes. So, for example, the following line of code sets width to 400, height to 200, and turns scrollbars on. window.open(' ', windowname, 'height=200,width=400,scrollbars=yes');
Find elsewhere
🌐
SitePoint
sitepoint.com › blog › javascript › js code snippet to open a popup window
js code snippet to open a popup window — SitePoint
February 13, 2024 - You can control the size and position ... wide and 600 pixels tall, and positioned 10 pixels from the left and top of the screen, you would use: var myWindow = window.open("", "myWindow", "width=500,height=600,left=10,top=10");...
🌐
Laurentian
web.cs.laurentian.ca › rsgrewal › c2206 › javascript › examples › windows › windows.html
Opening a pop up window
Close pop up window and click the following link to open it again. ... This method uses a special form of link which just executes a javascript function. ... Other useful features are menubar="yes", resizable="yes", scrollbars="yes", toolbar="yes", and status="yes". Note that the javascript designers cannot spell: use resizable not resizeable. The default values are "no". Click the following link to see a popup window with these values turned on.
🌐
Quora
quora.com › How-do-you-create-a-new-popup-window-in-JavaScript
How to create a new popup window in JavaScript - Quora
Answer (1 of 2): I would suggest you to use window.open() Here is the syntax and parmeter of window.open(): window.open(URL, windowName, [windowFeatures]) URL: The URL of the page to open.
🌐
Your HTML Source
yourhtmlsource.com › html source › javascript › popup windows | open new customised windows with javascript
Popup Windows | open new customised windows with JavaScript
November 17, 2025 - So, a fully kitted-out new window might look more like this: newwindow=window.open(url,'name','height=500,width=400,left=100, top=100,resizable=yes,scrollbars=yes,toolbar=yes,status=yes');
🌐
Inductive Automation
docs.inductiveautomation.com › visualization and dashboards › windows › popup windows › open popup window
Open Popup Window | Ignition User Manual
December 11, 2023 - You can use a button, a label, an image or any component you like to open up a popup window. This example opens a popup window from a Main Window using a Button component. In any Main Window, drag a Button component from the Component Palette to your window.
🌐
OutSystems
outsystems.com › forums › discussion › 20540 › open-pop-up-from-another-pop-up
Open Pop Up from another Pop Up | OutSystems
I'm trying to open a Popup from another Popup using the Popup_Editor widget only, and without the second Popup window being "inside" and limited in size by the first Popup. The solution i have now is opening the second Popup using Javascript function window.open(). I really wanted to use only ...
🌐
Poper
poper.ai › guides › popup-window-open
How to Make a Popup Window Open (Code & No-Code Methods) - Poper
August 22, 2025 - Learn how to make a popup window open on your website. This guide covers JavaScript window.open(), modern modal popups with code, and easy tools like Poper.
🌐
Super Dev Resources
superdevresources.com › home › blog › development › how to open links in a popup window
How to Open Links in a Popup Window - Super Dev Resources
June 18, 2020 - You can specify the left and right attributes to position the popup window. Reply · Sir, i want mouse over pop up. thanks in advance. Reply · hi , can you plz tell me how to link a html page as pop up on clicking button with overlay effect? Reply · Hi Rashmi. You can take a look at popup dialog libraries such as https://sweetalert.js.org/ Reply ... Thank you so much. It worked. Reply ... Great post, thanks a lot for providing this example with usable HTML-code. Reply ... Hi, I am trying to open the popup through a button and not through the words Open Link in Popup.
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Mozilla › Add-ons › WebExtensions › API › browserAction › openPopup
browserAction.openPopup() - Mozilla | MDN
6 days ago - Open the popup when the user selects a context menu item: js · browser.menus.create({ id: "open-popup", title: "open popup", contexts: ["all"], }); browser.menus.onClicked.addListener(() => { browser.browserAction.openPopup(); }); Was this page helpful to you?