Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
|
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 20th, 2010, 04:23 AM
Authorized User
 
Join Date: Aug 2010
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Cade_Feng
Post How to judge a page is closed by js?

Hi,Everyone

How to judge a page is closed by JavaScript?
Better attach code.
__________________
Wana be a .net developer.
Sincere yours
Cade_Feng
 
Old September 20th, 2010, 02:58 PM
Friend of Wrox
 
Join Date: Jun 2008
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

Question makes no sense.

You close a page using JavaScript by calling window.close() or self.close(). So you *KNOW* when that page was closed by JS. If it's closed by the user, it will NOT be by those calls.
The Following User Says Thank You to Old Pedant For This Useful Post:





Similar Threads
Thread Thread Starter Forum Replies Last Post
How can i distinguish refresh or close page by js? Cade_Feng Javascript 10 September 13th, 2010 04:28 AM
How to judge input value Martin.wang Word VBA 1 July 20th, 2009 10:14 PM
how to include .js file in .aspx page shanwaj ASP.NET 2.0 Basics 13 March 11th, 2008 07:36 AM
How to judge wire or wirless? Stevelee C++ Programming 0 August 23rd, 2007 03:23 AM
passing parameter from js to another jsp page. Regornil JSP Basics 1 August 31st, 2004 08:23 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.