Home Technical Resources How to close the window opened by window.open
How to close the window opened by window.open

How to close the window opened by window.open

Methods to close an open window: 1. Use "window.close" to close the new window; 2. Use "window.location" to redirect; 3. Use "window.blur" and "window.focus"; 4. Use "window. .history" fallback; 5. Use "window.opener". If you want to know more details about how to close the window opened by window.open, you can visit the following article.

353
4

Table of Contents

How to close the window opened by window.open

How to close the window opened by window.open

window.openHow to close an open window

window.openHow to close an open window

Methods to close an open window: 1. Use "window.close" to close the new window; 2. Use "window.location" to redirect; 3. Use "window.blur" and "window.focus"; 4. Use "window. .history" fallback; 5. Use "window.opener".

Dec 06, 2023 pm 02:15 PM

Solution to window.open() pop-up window being intercepted by browser

Solution to window.open() pop-up window being intercepted by browser

The content of this article is about the solution to the window.open() pop-up window being intercepted by the browser. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you.

Mar 20, 2019 am 10:15 AM

How does JS detect whether the window opened by window.open is closed?

How does JS detect whether the window opened by window.open is closed?

During development, I encountered the need to add a mask to the parent window while opening the window to prevent misoperation by the user, and when the window was closed, the mask of the parent window needed to be removed to facilitate user operation. So you can use setInterval() to periodically detect whether the open window is closed.

May 29, 2018 am 11:00 AM

How to deal with interception when calling window.open in ajax request

How to deal with interception when calling window.open in ajax request

This time I will show you how to deal with the interception of calling window.open in an ajax request. What are the precautions when handling the interception of calling window.open in an ajax request? The following is a practical case, let's take a look.

May 24, 2018 pm 02:59 PM

Hot Tools

Kits AI

Kits AI

Transform your voice with AI artist voices. Create and train your own AI voice model.

SOUNDRAW - AI Music Generator

SOUNDRAW - AI Music Generator

Create music easily for videos, films, and more with SOUNDRAW's AI music generator.

Web ChatGPT.ai

Web ChatGPT.ai

Free Chrome extension with OpenAI chatbot for efficient browsing.

Sweetless

Sweetless

AI-powered app to monitor and reduce sugar intake.

Notte.ai

Notte.ai

AI meeting assistant for note-taking and organizing ideas.