Wrox Programmer Forums
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms 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 August 9th, 2005, 09:27 AM
Authorized User
 
Join Date: Jun 2005
Posts: 42
Thanks: 0
Thanked 1 Time in 1 Post
Default Closing a browser

Hi there, I need a sample code to close a browser from a button. I do not want to give user the option to choose if they want to close it. for example: "onClick =window.close()" I just want to close the browser as soon as the user click the button.

arnniema
__________________
arnniema
 
Old August 9th, 2005, 03:31 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

use that onclick event with the <input type="button" ...>

Or the same can be used with <a href=""> tag.

Hope that helps.

_________________________
- Vijay G
Strive for Perfection
 
Old August 9th, 2005, 07:49 PM
Authorized User
 
Join Date: Jun 2005
Posts: 42
Thanks: 0
Thanked 1 Time in 1 Post
Default

I know that there is another way.

arnniema
 
Old August 16th, 2005, 11:02 AM
Authorized User
 
Join Date: Jun 2005
Posts: 42
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi there all. I know that there is another way that when the user click the exit button the system close the borwser with out asking the user.

arnniema
 
Old August 17th, 2005, 11:25 AM
Authorized User
 
Join Date: Jun 2005
Posts: 42
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi tehere all:

This is the code that I was looking for. When the user want to close the browser he just by clicking the exit button and on the Onclick="return exitbtn_onclick()" calls the function below.

function exitbtn_onclick() {
    opener=1;
    self.close();
}

Thank you all for your help!!!

Arnnie

arnniema





Similar Threads
Thread Thread Starter Forum Replies Last Post
closing browser prv299 ASP.NET 2.0 Professional 1 June 5th, 2008 09:15 AM
invalidate the session on closing of browser VinodTewthia Pro JSP 4 July 21st, 2007 12:12 AM
browser closing vamsivaila Pro Java 0 January 3rd, 2007 06:43 AM
Determine method of closing browser chrscote Javascript How-To 2 August 31st, 2006 05:34 AM
Closing browser using a Button MichaelTJ ASP.NET 1.0 and 1.1 Basics 3 December 18th, 2003 02:06 PM





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