| |

VerySource

 Forgot password?
 Register
Search
View: 730|Reply: 3

Before js window.open, can I judge that it has been opened, and will not open it?

[Copy link]

2

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-2-21 20:30:01
| Show all posts |Read mode
window.open ('aa.html', 'win1', '')

This is a win1 window that I have opened.

Window.open ('aa.html', 'win1', '') again
Although it is impossible to open the second window called win1, it will flash.

Can you judge that there is a window called win1, it will not open.

Don't know how to judge.
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-5-2 11:45:01
| Show all posts
With cookies
Reply

Use magic Report

0

Threads

4

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-5-3 23:00:02
| Show all posts
var newwin
if (! newwin) window.open ('aa.html', 'win1', '')
Reply

Use magic Report

0

Threads

4

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 India

Post time: 2020-5-4 00:15:01
| Show all posts
Sorry. The above is wrong. .
var newwin
if (! newwin) newwin = window.open ('aa.html', 'win1', '')
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list