Re: Close Browser page by ASP by Bob
Bob
Mon Dec 22 10:43:55 CST 2003
Rafael Chemtob wrote:
> Hi,
> Does anyone know how I can close a browser page via VBScript code?
>
> thanks
ASP code executes on the server, so ASP code cannot be used to close the
browser.
You can use
window.close
to close the browser in client-side code, but the user will be prompted. In
many browsers, you can use
window.opener="me"
window.close
to close the browser without prompting the user, but more and more browsers
are closing this security loophole.
HTH,
Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"