That's because this isn't a full URL:

www.teladocc.com

It's a relative URL. The browser has no way of knowing the difference between www.teladocc.com and, say, index.html.

If you did this:

window.open('index.html')

Then you wouldn't really expect to go to http://index.html, would you?

Use a fully-qualified URL:

window.open('http://www.teladocc.com/pnc')
Answer from David on Stack Overflow
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › API › Window › open
Window: open() method - Web APIs | MDN
The open() method of the Window interface loads a specified resource into a new or existing browsing context (that is, a tab, a window, or an iframe) under a specified name. js · open() open(url) open(url, target) open(url, target, windowFeatures) url Optional ·
🌐
W3Schools
w3schools.com › jsref › met_win_open.asp
Window open() Method
cssText getPropertyPriority() ... ... More examples below. The open() method opens a new browser window, or a new tab, depending on your browser settings and the parameter values....
Discussions

Modernized version of window.open() API
Flip the default so usually you don't get opener access, and you have to opt in to it · Not parse the URL relative to the entry settings object (Minimize usage of the entry concept #1431) but instead use the relevant settings object like other modern APIs. Not special case the empty string or about:blank URLs · Be extensible to future additional options without adding more terrible string parsing; see e.g. Use a different overload to handle window... More on github.com
🌐 github.com
15
January 11, 2022
Open url in new tab with serverside javescript window.open is not working | OutSystems
Open url in new tab with serverside javescript window.open is not working More on outsystems.com
🌐 outsystems.com
April 9, 2024
Using Javascript Window.open - Stack Overflow
Add http:// to the link in your window.open. Here's a JSFiddle demo. More on stackoverflow.com
🌐 stackoverflow.com
Open URL in new window with JavaScript - Stack Overflow
I'm making a "share button" to share the current page. I would like to take the current page URL and open it in a new window. I have the current URL part working, but can't seem to get the next part More on stackoverflow.com
🌐 stackoverflow.com
🌐
MDN Web Docs
devdoc.net › web › developer.mozilla.org › en-US › docs › DOM:window.open.html
Window.open() - Web APIs | MDN
July 28, 2017 - Mozilla and Firefox users can force new windows to always render the location bar by setting dom.disable_window_open_feature.location to true in about:config or in their user.js file.
🌐
GitHub
github.com › whatwg › html › issues › 7485
Modernized version of window.open() API · Issue #7485 · whatwg/html
January 11, 2022 - window.open() is full of legacy design mistakes. Here is a proposal for what, IMO, it should look like: window.openWindow(url, { allowOpenerAccess, referrerPolicy }); window.openPopup(url, { left, top, width, height, allowOpenerAccess, r...
Author   domenic
🌐
Educative
educative.io › answers › what-is-the-windowopen-method-in-javascript
What is the window.open() method in JavaScript?
All parameters of this method are optional. If none is specified, the method will open a new blank browser window.
Find elsewhere
🌐
GeeksforGeeks
geeksforgeeks.org › javascript › javascript-window-open-window-close-method
Javascript Window Open() & Window Close() Method - GeeksforGeeks
August 5, 2025 - JS Tutorial · Web Tutorial · ... Updated : 5 Aug, 2025 · The Javascript Window.Open() method is used to open the web pages into a new window or a new tab....
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Mozilla › Add-ons › WebExtensions › API › windows › create
windows.create() - Mozilla | MDN
July 17, 2025 - Note: This API is based on Chromium's chrome.windows API. This documentation is derived from windows.json in the Chromium code. window.open · Was this page helpful to you? Yes · No Learn how to contribute · This page was last modified on Jul 17, 2025 by MDN contributors.
🌐
Reddit
reddit.com › r/javascript › best practices for opening new window (pop up or pop under) with javascript
r/javascript on Reddit: Best practices for opening new window (pop up or pop under) with JavaScript
April 12, 2011 -

Here at work, we do a fair bit of surveys on various sites via Survey Monkey. The MO has always been to do a pop under window - focus the parent, not the child/new window. I've stressed how I think this is slimey (hiding the new window), but it is what it is and that's that :)

Seems every time we have a survey, I'll get people coming to me because the new window is getting blocked by someone. I've looked at the code they're using and it's using the typical window.onload event. I tell them this is probably why they're getting blocked as the pop up blockers are no doubt seeing automatically opened windows as unwanted advertising. Because the window onload and onunload events have been so abused, this is why we have pop up blockers built into browsers as well as plugins.

I thought about perhaps using a timer to delay execution of the pop up from onload, but not sure if this will make any difference. I'm kind of guessing not but I haven't tested it yet. I can't really test it as it's another dept. that has access to the server, not me... I've also thought about using onmousemove to trigger it (user-triggered event) and then nulling that out but that seems even more stupid.

I've suggested adding static survey promos which would be user-triggered events as I think those might fare better in the world of pop up blockers - even though there's still no guarantee. So the user clicks to pop the new window.

I've also suggested removing JS from the equation altogether and having the promos link straight to Survey Monkey. The counter there is that they've lost where they are in our site (they could have deep-linked in). They can't just easily close the Survey Monkey window to pick back up where they left off in their task. Off the top of my head, I don't know if they can use their back button to backtrack from the end of the Survey Monkey survey, either.

Is there a general consensus of best practices in regards to opening a new pop up (or pop under) window with JavaScript with pop up blockers?

🌐
GeeksforGeeks
geeksforgeeks.org › javascript › javascript-window-open-method
JavaScript window.open() Method - GeeksforGeeks
August 5, 2025 - JS Tutorial · Web Tutorial · ... : 5 Aug, 2025 · The Javascript window.open() method is used to open a new tab or window with the specified URL and name....
🌐
University of New Mexico
unm.edu › ~tbeach › IT145 › week13 › example10.html
Javascript Opening Windows
(In the example above, the first link opens a window with the name demo4. You don't see that name, but it's the name of the new window. The second link opens a different page into the same window, replacing the first page, since it also was target to demo4. ALSO, notice that I did something different in the second link by making the window object myWindow, and then adding another JavaScript command, after the semicolon, that give focus to myWindow.
🌐
ZetCode
zetcode.com › dom › window-open
JavaScript window.open Guide: Learn How to Open Browser Windows
April 2, 2025 - Learn how to use JavaScript's window.open method effectively with examples and detailed explanations. Enhance your web development skills with this step-by-step tutorial.
🌐
JavaScript.info
javascript.info › tutorial › frames and windows
Popups and window methods
A name of the new window. Each window has a window.name, and here we can specify which window to use for the popup. If there’s already a window with such name – the given URL opens in it, otherwise a new window is opened.
🌐
GeeksforGeeks
geeksforgeeks.org › javascript › how-to-open-url-in-a-new-window-using-javascript
How to open URL in a new window using JavaScript? - GeeksforGeeks
August 21, 2025 - Another approach involves using the input tag (<input type="button">) with an onclick event handler to open URLs in new windows. Similar to the anchor tag, this approach allows for customizing window properties such as width, height, and position.
🌐
Quora
quora.com › How-do-you-change-JavaScript-code-of-window-open-to-not-open-in-a-new-window
How to change JavaScript code of window.open to not open in a new window - Quora
Answer (1 of 2): You don't have to change the behavior of [code js]window.open[/code] to target the same window, because [code js]window.open[/code] already supports this option. First you need to give your window a name, then you provide that name to [code js]window.open[/code] as the second pa...
🌐
Electron
electronjs.org › opening windows from the renderer
Opening windows from the renderer | Electron
Non-standard features (that are not handled by Chromium or Electron) given in features will be passed to any registered webContents's did-create-window event handler in the options argument. frameName follows the specification of target located in the native documentation. When opening about:blank, the child window's WebPreferences will be copied from the parent window, and there is no way to override it because Chromium skips browser side navigation in this case.