Yeah, OnQuit works. I'm just not quite sure how to unadvise. I'm thinking this problem might be memory oriented, but I'm not quite sure about it. The cancel variable doesn't appear to be written to, though I haven't tried debugging this yet.
Um, it works? So during the beforenavigate2 event a messagebox shows up and then the navigation cancels? Because I've never gotten the navigation to cancel.
The reason the do while loop is in there is so it works past the first event. Otherwise, the script will stop working after the first...
Hi, I've been having problems getting NewWindow2 and BeforeNavigate2 to cancel in the following vb script. I've had the same problems with jscript. I'm not really sure why this doesn't work. Another question I had was how to unadvise on quit. I've been running this using wscript. Is there...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.