what's the command to close popup window?

fastsnail78

New Member
Joined
May 17, 2019
Messages
31
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 :)
 

Evgeny_Volin

New Member
VIP
Joined
Jan 28, 2021
Messages
36
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