Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disable the close button on a frame

Status
Not open for further replies.

andyfresh

Technical User
Oct 4, 2005
33
GB
Hi

Im currently creating a site whereby I need people to logout of the site correctly instead of just hitting the cross in the top right hand cornor. Does anyone know a way of how I can disable the close button function on a windows frame??

Regards

Andy
 
Is it possible to capture the event when the close button is pressed. That way we could then put some scripting before it and carry out our logging out procedure before the page closes??

Andy
 
You can access the onbeforeunload event in IE for windows (don't know about other browsers).

Cheers,
Jeff

[tt]Jeff's Page [/tt][tt]@[/tt][tt] Code Couch
[/tt]

What is Javascript? faq216-6094
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top