Questions tagged [new-window]

209 questions
566
votes
19 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
  • 106,283
  • 107
  • 420
  • 616
152
votes
3 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
  • 1,757
  • 4
  • 13
  • 14
87
votes
10 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.
48
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
  • 583
  • 1
  • 4
  • 8
26
votes
2 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
  • 9,608
  • 8
  • 63
  • 80
23
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
  • 595
  • 2
  • 8
  • 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
  • 19
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
  • 13,166
  • 10
  • 76
  • 99
12
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
  • 966
  • 7
  • 28
  • 52
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,737
  • 8
  • 37
  • 61
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
  • 2,448
  • 1
  • 28
  • 33
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
  • 551
  • 6
  • 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
  • 9
5
votes
2 answers

Standards-compliant equivalent to target="_blank"

There are instances where I have to open links in a new window/tab. Is there a method of doing so that is valid for strict HTML? Using jQuery to do so would be acceptable, but I'd rather not just sneak the target="_blank"s back in w/ jQuery so that…
aslum
  • 10,651
  • 15
  • 45
  • 67
5
votes
2 answers

Jsf redirect to new window

i'm making a JSF2.0 project using mojarra primefaces tomcat6.x. I made a select list and when i select item of the list i want to redirect to the selected url. It can be an internal URL. It's work but i want to know if it's possible to redirect in…
La Chamelle
  • 2,797
  • 3
  • 33
  • 54
1
2 3
13 14