A tag or window.open opens a hyperlink confirmation box how to listen for cancellation, or try, catch?

problem description

clipboard.png

 <a :href=""telecontrol:"+ itemIp" class="open-terminal">

  let obj
      try {
        obj = window.open("telecontrol:192.168.1.54", "_parent")
        obj.addEventListener("onclose", (e) => {
          console.log("")
        })
        obj.addEventListener("oncancel", (e) => {
          console.log("")
        })
      } catch (error) {
        this.$message.error(error)
      }
      console.log(obj, "obj")

the environmental background of the problems and what methods you have tried

it seems useless for me to listen to the event above. I don"t know whether my event is useless or the method is useless.

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

expect the result to capture that the user clicked to open the hyperlink failed, even if the user clicked to cancel

Mar.28,2021

you can try to listen by using timer first

var loop = setInterval(function() {   
    if(winObj.closed) {  
        clearInterval(loop);  
        alert('closed');  
    }  
}, 1000); 

the newly opened page is a child of the previous page. You can call the method of the parent page to pass the opening prompt.
then set the waiting time, but the timeout does not open.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e5022b-4d424.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e5022b-4d424.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?