Questions tagged [new-window]
224 questions
3
votes
1 answer
Can javascript detect if a window has opened another window?
I've written a web page that kind of behaves as a sort of kiosk: when it opens, it detects if it's the controlling window. If not, it loads the controlling window page, and opens the index page again in a new window so it can detect the opener…

Luis Fernando Rocha
- 83
- 1
- 7
2
votes
2 answers
Appending same node in different windows
I want to append an object, that was created in a parent window to a child window:
div = document.createElement( "div" );
document.body.appendChild( div );
// Here come div's atts;
render = window.open().document;
render.body.appendChild( div…

Michael Sazonov
- 1,531
- 11
- 21
2
votes
4 answers
Cypress how to handle new tab without "target" and "href" attribute?
I am using this example but I am not able to automate the "New Tab" button.
Here is a screenshot of the HTML document:
I am trying to solve this by using the first answer from this topic.
///
describe('Example shows…

Ivan Markov
- 129
- 4
- 15
2
votes
1 answer
Delphi Intraweb: Is there a way to open an url in a new tab without the popup behavior?
In an Intraweb (VCL for the web) mobile web application I need to redirect the user to a java webapp. I specify that is a java webapp to stress the fact that it is a completely different thing compared to the intraweb webapp.
I would like to achieve…

UnDiUdin
- 14,924
- 39
- 151
- 249
2
votes
4 answers
send data from a new window to previous window in php
I have an image in the main.php file :
when I click on this image below function has called :
function imgWin()
{
…


Javad Yousefi
- 2,250
- 4
- 35
- 52
2
votes
3 answers
Styled-components dynamic CSS is not generated in a new window
I'm using react-new-window to open a popup. The popup includes a few dynamic components (a toggle, a dropdown, etc) styled with styled-components.
Everything is displayed properly until I try to interact with one of the dynamic components and it…

Dmitry Shvedov
- 3,169
- 4
- 39
- 51
2
votes
1 answer
How can I display thumbnails of images in a grid and then open one image in new window using tkinter and python?
Update: Figured out a solution and updated as a self answer.
I have 20 jpg images in a directory. Using Python 3.7 + Tkinter 8.6.10. I access them, resize and display them in a main Window in a a grid. The grid has 12 rows x 5 columns = 60…

rbewoor
- 305
- 1
- 3
- 14
2
votes
1 answer
How to implement CMD + N in Java (OS X)
I'm writing one of my first Java-Applications for OSX.
As you might know the handling of applications in OSX differs a little bit from Windows.
In windows 1 JFrame normaly means that this is one instance of the application, so if I want to close the…

Gundon
- 2,081
- 6
- 28
- 46
2
votes
1 answer
How can I open and close a new window from main window in PyQt?
I searched in Google usually many posts are talking about how to open a new window and not indicating how to close the window. I found several posts in this website but most of them are using dialog window which is not considered in my software.
I…

Zhentao
- 140
- 1
- 10
2
votes
1 answer
Writing to a new window
Im trying to get some simple javascript working in gwt but keep failing.
The code:
public static native void createWindow() /*-{
var wndRef = $wnd.open('','edit');
var divTag = document.createElement("div");
divTag.id =…

Primus
- 265
- 1
- 3
- 10
2
votes
2 answers
Open link in new browser?
I have the following code below in a javascript file and need to have the link that is being generated open in a new window.
if (currentSearchType === 'extSearch') {
extSearchSearchValue = extSearchSearchInput.val();
window.location.href =…

Roger
- 23
- 2
2
votes
1 answer
Electron: webview doesn't receive callback code from new created window
I've got desktop application that works as simple browser. It has tabs with webviews that show web pages.
Some websites have social sign-in option. And I really need it to be available for my users.
In general browser (e.g. chrome) when you sign in…

kodiSPO
- 346
- 5
- 6
2
votes
1 answer
How I can start Selenium in current Window of Firefox? Without opening new window
I need to start my JAVA Selenium code in current Window of Firefox. But when I start my code WebDriver driver = new FirefoxDriver(); will open new window! Don't need open new window!
In Selenium IDE code works in current window of browser.
package…

GoldenScrew
- 181
- 2
- 3
- 14
2
votes
2 answers
how to open new browser window from java desktop application code?
I want to open new browser window from java desktop application. If browser is already open, then new browser window should open. Every time it should open a separate window.

Ankit Kumar Singhal
- 167
- 1
- 3
- 13
2
votes
2 answers
New window in Processing
Yesterday I found the following code for creating a second window in Processing
import javax.swing.JFrame;
PFrame f;
secondApplet s;
void setup() {
size(600, 340);
}
void draw() {
background(255, 0, 0);
fill(255);
}
void…

Do Tog
- 35
- 1
- 1
- 4