I am opening the page in separate browser with window.open("URL") and closing it with window.close() once users finish the activity. So my question is if Users opens the page with window.open("URL") and don't do anything, is it possible to have timer so that that tab/page get close itself ??????
Asked
Active
Viewed 15 times
0
-
2Yes. https://developer.mozilla.org/en-US/docs/Web/API/setTimeout – Rory McCrossan Nov 25 '22 at 09:50
-
@RoryMcCrossan so i can just put setTimeout and window.close init with conditions ? – Mike Nov 25 '22 at 09:52
-
@HarunYilmaz thank you guys for quick response and yes your comments answered my question. Thank you so much – Mike Nov 25 '22 at 09:54
-
1@RoryMcCrossan thank you guys for quick response and yes your comments answered my question. Thank you so much – Mike Nov 25 '22 at 09:54