Questions tagged [new-window]

224 questions
760
votes
24 answers

Can I create links with 'target="_blank"' in Markdown?

Is there a way to create a link in Markdown that opens in a new window? If not, what syntax do you recommend to do this? I'll add it to the markdown compiler I use. I think it should be an option.
ma11hew28
  • 121,420
  • 116
  • 450
  • 651
192
votes
5 answers

Open URL in new window with JavaScript

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 working. I'm struggling with the syntax. I would…
Mark Mitchell
  • 2,157
  • 4
  • 16
  • 15
96
votes
12 answers

How to switch to the new browser window, which opens after click on the button?

I have situation, when click on button opens the new browser window with search results. Is there any way to connect and focus to new opened browser window? And work with it, then return back to original(first) window.
50
votes
11 answers

Javascript window.print() in chrome, closing new window or tab instead of cancelling print leaves javascript blocked in parent window

In the application I work on, we have several different places a user can print from. In all these cases we are using the same workflow of opening a new window(or tab), writing whatever we need to print to the document of the new window, and then…
umitelight
  • 603
  • 1
  • 5
  • 8
30
votes
3 answers

Set a callback function to a new window in javascript

Is there an easy way to set a "callback" function to a new window that is opened in javascript? I'd like to run a function of the parent from the new window, but I want the parent to be able to set the name of this particular function (so it…
SztupY
  • 10,291
  • 8
  • 64
  • 87
26
votes
3 answers

Execute terminal command from python in new terminal window?

The goal here is to run a new python file in a new shell from and existing python file in an existing shell. Say i have two files, aaa.py and bbb.py. Lets say for simplicity that all aaa.py does is... subprocess.call('python bbb.py',…
Evan Cathcart
  • 635
  • 2
  • 10
  • 13
17
votes
6 answers

How to handle the new window in Selenium WebDriver using Java?

This is my code: driver.findElement(By.id("ImageButton5")).click(); //Thread.sleep(3000); String winHandleBefore =…
Arun Kumar
  • 225
  • 2
  • 8
  • 20
14
votes
2 answers

Open new window by POST using h:commandButton

I need to open a JSF page in a new window by POST on click of a . I know I can acheive this using the JavaScript. But I would like to achive this using JSF and not JavaScript. How can I achieve this? I'm using JSF 2.0.
vr3w3c9
  • 1,118
  • 8
  • 32
  • 57
12
votes
3 answers

System.Windows.Forms.WebBrowser open links in same window or new window with same session

When using the .NET WebBrowser control how do you open a link in a new window using the the same session (ie.. do not start a new ASP.NET session on the server), or how do you capture the new window event to open the URL in the same WebBrowser…
Greg Bray
  • 14,929
  • 12
  • 80
  • 104
9
votes
1 answer

jQuery open new window centered with fixed size

Possible Duplicate: Center a popup window on screen? I have 4 different links, all of which need to open a new window which will target 4 different html files. When the links are clicked, it needs to open the html file in question in a new…
John
  • 1,777
  • 9
  • 42
  • 66
8
votes
1 answer

How to open multiple instances of Alacritty on macOS?

macOS 11.4 , Alacritty 0.8.0 installed from homebrew 3.2.5 , although this should not matter because the question is mostly related to macOS UI. What I want to do is something equivalent to Terminal.app's right click on icon > New Window sort of…
user426
  • 213
  • 2
  • 9
8
votes
1 answer

Stop selenium from opening a new window when clicking on a link

I am exporting my selenium test to python and running the test using the shell. I get to a certain point where I click on a link and the web-driver then opens a completely new Firefox window and then I get an error saying that the driver can't find…
seeiespi
  • 3,628
  • 2
  • 35
  • 37
7
votes
1 answer

Visual Studio 2015 'New Window'/Multiple Instances for HTML files

Visual Studio 2015 has the "New Window" button and "Window|New Window" menu item disabled for HTML files. I need this feature enabled. I've found ways to do it for VS 2010, but not for VS 2015. Any suggestions?
BRebey
  • 671
  • 8
  • 12
6
votes
3 answers

Opening a new Window with a Widget in GWT

Before you start shooting me down i have checked for answers and i have googled till my fingers bled but i havent been able to find a simple, concise answer. So im asking again for all those that might have this problem. Question: how to open a new…
Primus
  • 265
  • 1
  • 3
  • 10
6
votes
2 answers

target="_blank" in p:menuitem doesn't open new tab

I am using primefaces 5.1, liferay 6.2.0-ga2 and JSF2. I have a page with button. When I press right-click a context menu with one menuitem is displayed. That menuitem must open a new tab, but it doesn't.
TuGordoBello
  • 4,350
  • 9
  • 52
  • 78
1
2 3
14 15