469,600 Members | 2,185 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,600 developers. It's quick & easy.

Close Browser Page

Hi,
Does anyone know how I can close a browser page via ASP code?

thanks
Jul 19 '05 #1
2 7282


Rafael Chemtob wrote:
Does anyone know how I can close a browser page via ASP code?


If you want to close the browser window you need client side script.
<script type="text/javascript">
window.close();
</script>
However note that various browsers have security settings that prevent
script from closing a window that has not been opened by script but by
the user. Some browsers ask the user whether he wants the window to be
closed.

--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 19 '05 #2
Please do not multipost. See answers in .vbscript group.

Ray at work

"Rafael Chemtob" <rc*******@nospam.yahoo.com> wrote in message
news:OT**************@TK2MSFTNGP12.phx.gbl...
Hi,
Does anyone know how I can close a browser page via ASP code?

thanks

Jul 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Thang Nguyen | last post: by
9 posts views Thread by Graham | last post: by
3 posts views Thread by Isabel | last post: by
4 posts views Thread by Ron Lautmann | last post: by
2 posts views Thread by Sunil Sabir | last post: by
5 posts views Thread by jimmy | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.