what's the command to close popup window?

fastsnail78

New Member
Joined
May 17, 2019
Messages
34
Reaction score
0
Hi all,

I am trying to do windows popup randomly before clicking my target url and before clicking my target, I need to close all the pop up.

What's the command in macro to close the popup window?

I tired close(); but seems not working.

any helps will be very appreciated.


Thanks.
 

Wissmo

New Member
Premium
Joined
Aug 29, 2019
Messages
2
Reaction score
0
Achievement
Hello, I also need a solution for that. Is there someone here to help? Thanks :)
 

opsfafsme

Well-Known Member
Rule The Universe
VIP
Joined
Jul 2, 2018
Messages
243
Reaction score
91
Website
OnlinePiercingShop.com
Achievement
@Wissmo

Already asked, the solution is ready

 
Last edited:
  • Like
Reactions: serjojazz

Evgeny_Volin

New Member
VIP
Joined
Jan 28, 2021
Messages
39
Reaction score
0
Achievement
tabs = await TabCount();
while (tabs > 1) {
await TabFocus(tabs--);
await Delay(100);
await EvaluateScript("setTimeout(function(){var ww = window.open('about:blank', '_self'); ww.close();}, 500);");
}
await TabFocus(tabs);
 

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu