Home > front end >  Browser window close monitoring
Browser window close monitoring

Time:10-06

The same browser open two pages, how in the first page to determine whether the second browser closed? Use js to control, don't need a framework of that kind of,

CodePudding user response:

The first page must use var win2=window. The open (" the second page address "); Methods open the second page,
Can use win2. Closed to judge whether the second page is closed,
  • Related