Closing a Window

C

Charles A. Lackman

Hello,

How do I close an ASPX page when it no longer has focus?

Thanks,
Chuck
 
T

Teemu Keiski

Hi,

you could try at client-side

<BODY onblur="this.close()"...>

but as such this will complain if page is in the main browser window, that
is, originally opened by the user and not opened programmatically in any
means (like a popup window is), that application is trying to close the
window. However, there's a way around it:
http://aspalliance.com/333

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
http://blogs.aspadvice.com/joteke


Hello,

How do I close an ASPX page when it no longer has focus?

Thanks,
Chuck
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,767
Messages
2,569,570
Members
45,045
Latest member
DRCM

Latest Threads

Top