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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I close the browser window after the max inactivity has expired

Status
Not open for further replies.

yongbum

Programmer
Dec 15, 2005
48
IL
Hi I have the following to redirect after max 3 minutes inavtivity:

<meta http-equiv='refresh' content='180; url=Login.aspx'>

Instead of 'url=Login.aspx' I'd like to close the browser window - window.close - as the aspx pages are accessed after using window.open.
What is the syntax within the meta tag for using
window.close.

Thanks for any help

David
 
There is no meta tag or attribute or any HTML that will close a window. That is javascript.

If you really need to use javascript then why not create a page that just closes the window with javascript and redirect the browser there instead?

Incidentally, I think a better way to do what you seem to be doing would be through the use of sessions via watever backend scripting language is available to you (asp by the looks of it!).

<honk>*:O)</honk>
Foamcow Heavy Industries - Web site design in Cheltenham and Gloucester
Ham and Jam - British & Commonwealth forces mod for Half Life 2
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top