


Open a new window and close the current page without popping up the closing prompt js code
The code is as follows:
<script type="text/javascript"> function closeIt() { window.opener = ''; window.open('http://www.baidu.com'); window.open('', '_self'); window.close(); } self.setInterval("newTime()", 1000) var t = 4; function newTime() { if (t > 0) { t = t - 1; document.getElementById("txtTime").value = t } else if (t <= 0) { closeIt(); } else { closeIt(); } } </script>
Related articles:
Click the return button to close the current page and window in WeChat, Alipay and Baidu Wallet
JS summary of several ways to close the current page (window)
JS code that automatically jumps or closes the current page after a specified time

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

How to turn off weather reminder in edge browser? The edge browser is a built-in browsing tool on your computer, and it has also won the love and trust of many users. In the process of using the edge browser, many users will find that it always automatically turns on the weather reminder function, and many users think it is of little use. If you don’t like the weather reminder function of edge browser, you can choose to turn it off. The editor below will bring you specific methods to cancel the weather reminder function of Microsoft browser. Let’s learn together. How to cancel the weather reminder function of Microsoft browser 1. First, we open the [edge browser] on the computer, and you can see that there is a weather reminder in the [upper left]. 2. If you want to close it, click the [Gear] icon on the right. 3. in

Some friends are always affected by the pop-up search box when using the system, and they don’t know how to close the automatic pop-up search box in Win10. For this reason, a detailed closing method is provided, which can help everyone not to be harassed. How to turn off the automatic pop-up of the search box in win10: 1. First, right-click the pop-up search box and enter the menu. 2. Then click "Search". 3. Then click "Hide" in the pop-up menu. 4. If you want to use it but don’t want to be disturbed, you can click “Show search icon”.

What should I do if Google Chrome opens a new window without jumping out? Google Chrome is a very powerful web browser software. We will encounter various problems when using Google Chrome. Many users have encountered the problem of opening a new window but not jumping out. This problem requires resetting the pop-up window in the settings, so how to do it specifically. This article will give you a list of ways to solve the problem of Google Chrome not popping up when opening a new window. I hope it can help you solve the problem. List of ways to solve the problem of Google Chrome not popping up when opening a new window. First, open the browser, click on the three dots icon in the upper right corner, find the [Settings] option in the menu that opens and click on it (as shown in the picture). 2. After entering, there is a navigation bar on the left side of the page, which will guide

Recently, when many win7 system users play games on their computers, they report that they always pop up the realtek audio manager automatically, which makes the game's automatic return to the desktop interruption very annoying. How to deal with such a problem? In response to this problem, the editor will introduce to you the detailed solution to the problem that realtek audio manager always pops up when playing games in win7 system. How to solve the problem that realtek audio manager always pops up when playing games in win7? 1. We can click the button on the desktop, which is the lower left corner of the computer. 2. We find an action option there and we can click on it. It will enter the operation interface. 3. In the operation interface, we need to enter msconfig. After entering, tap the action or direct key. 4. in

PHP function introduction—array_shift(): Pop the element at the beginning of the array PHP is a widely used scripting language, especially suitable for web development. In PHP, many powerful array functions are provided, one of which is the array_shift() function. This function removes and returns the first element from the beginning of the array, while updating the original array's key value. The syntax of the array_shift() function is as follows: mixedarray_shift(arra

Techniques and methods of using CSS to implement pop-up special effects when the mouse is hovering. In the design of web pages, we often encounter the need for pop-up special effects when the mouse is hovering. This special effect can improve the user experience and page interactivity. This article will introduce the techniques and methods of using CSS to achieve pop-up effects when the mouse is hovering, and provide specific code examples. 1. Use the transition attribute of CSS3 to realize gradient animation. The transition attribute of CSS3 can realize the gradient animation of elements by setting the appropriate transition time and transition.

Recently, many friends have encountered that when using the keyboard, no matter what keys are pressed, various contents will pop up, and games cannot be played. What is the situation? Let’s take a look at the specific solutions below. Various pop-up solutions for Windows 10 keyboard 1. First, rule out hardware problems, that is, whether your window key or other pop-up keys are inexplicably touched or pressed, or the keys malfunction or the keys are pressed automatically. These are not the case. If so, proceed with the following software operations. 2. Then we use the window+r key to open the command line, and then enter services.msc3. After that, click the box on the right and find ProgramCompatibilityAssistantSer inside.

How to set Sogou browser web page to open in a new window? We want to set the browser web page to open in a new window. How to set it up? How to do it specifically! When we use Sogou browser to browse the web, opening a new web page will replace the existing web page, which makes it very inconvenient for us to browse the web. How do we set the URL to open in a new window? What is the method! The editor has compiled the steps below to set up the Sogou Browser web page to open in a new window. If you don’t know how, follow me below! How to set Sogou Browser web page to open in a new window 1. First, find the control panel on the computer desktop and click to enter; 2. Find Network and Internet in the control panel and click to enter; 3. Find the Internet option on the new page and click
