Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Trying to close main browser window however...

Thread Tools
 
Search this Thread
 
Old 20 September 2002, 12:35 PM
  #1  
ChristianR
Scooby Regular
Thread Starter
iTrader: (1)
 
ChristianR's Avatar
 
Join Date: May 2001
Location: Europe
Posts: 6,329
Likes: 0
Received 1 Like on 1 Post
Post

it prompts for yes/no which i do not want.

<CENTER><FORM>
<INPUT type="Button" VALUE="Close" onClick="self.close()">
</FORM></CENTER>

it is basically an agreement they do for our intranet, if they click no i want it close the main window down without prompting.

[Edited by ChristianR - 9/20/2002 12:57:00 PM]
Old 20 September 2002, 01:06 PM
  #2  
SiDHEaD
Scooby Regular
 
SiDHEaD's Avatar
 
Join Date: Apr 2002
Location: Birmingham
Posts: 9,196
Likes: 0
Received 0 Likes on 0 Posts
Post

If its IE, it'll probably crash if you give it time anyway! (And as a bonus take the shell with it!!!)
Old 20 September 2002, 01:07 PM
  #3  
ChristianR
Scooby Regular
Thread Starter
iTrader: (1)
 
ChristianR's Avatar
 
Join Date: May 2001
Location: Europe
Posts: 6,329
Likes: 0
Received 1 Like on 1 Post
Post

thanks for that - yes it is IE. But it is needed so any suggestions?
Old 20 September 2002, 02:07 PM
  #4  
SiDHEaD
Scooby Regular
 
SiDHEaD's Avatar
 
Join Date: Apr 2002
Location: Birmingham
Posts: 9,196
Likes: 0
Received 0 Likes on 0 Posts
Post

i dont know anything about it, sorry. Just lightening the mood

I've asked the dude here who knows bout html n stuff and he not know...
Old 20 September 2002, 02:33 PM
  #5  
IWatkins
Scooby Regular
 
IWatkins's Avatar
 
Join Date: Mar 2000
Location: Gloucestershire, home of the lawnmower.
Posts: 4,531
Likes: 0
Received 0 Likes on 0 Posts
Post

Christian,

I think that is a security feature. I.e. you cannot close the main window, without agreement from the user. You can of course close all child windows.

I think the usual thing to do is to have the main window, pop-up an additional small windows with "Agree" "Disagree" buttons. If they don't agree, then the pop-up closes and the main page shows a blank page, if agree, the pop-up closes and the main windows goes to the page in question.

That is the way I've seen it anyway.

Cheers

Ian
Old 20 September 2002, 02:42 PM
  #6  
ChristianR
Scooby Regular
Thread Starter
iTrader: (1)
 
ChristianR's Avatar
 
Join Date: May 2001
Location: Europe
Posts: 6,329
Likes: 0
Received 1 Like on 1 Post
Post

IW> Thought as much. Pitty, as they will still have the toolbar, so then could type anywhere else to go to
Old 20 September 2002, 03:33 PM
  #7  
IWatkins
Scooby Regular
 
IWatkins's Avatar
 
Join Date: Mar 2000
Location: Gloucestershire, home of the lawnmower.
Posts: 4,531
Likes: 0
Received 0 Likes on 0 Posts
Post

If it is IE6 (or even IE5) you can customise the broswer with a kit called something like "The IE administrators kit" or similar.

You can do all sorts, like switch off toolbars, change logos/names on the window (for branding purposes etc.)

Might be worth a look, but I'm not sure quite what your application is.

Cheers

IAn

Trending Topics

Old 20 September 2002, 04:29 PM
  #8  
ChristianR
Scooby Regular
Thread Starter
iTrader: (1)
 
ChristianR's Avatar
 
Join Date: May 2001
Location: Europe
Posts: 6,329
Likes: 0
Received 1 Like on 1 Post
Post

Hi Ian,

Yeah I know about that, but really I just want the first page to be restricted, so they can either hit agree and continue, or disagree and ie will quit.

Old 20 September 2002, 11:31 PM
  #9  
IWatkins
Scooby Regular
 
IWatkins's Avatar
 
Join Date: Mar 2000
Location: Gloucestershire, home of the lawnmower.
Posts: 4,531
Likes: 0
Received 0 Likes on 0 Posts
Post

Does IE really have to quit ?

Could you not just have an "Agree" button ? This way, they can only proceed if they click the button, otherwise they get stuck with the "Do you agree page".
Old 21 September 2002, 12:23 PM
  #10  
ChristianR
Scooby Regular
Thread Starter
iTrader: (1)
 
ChristianR's Avatar
 
Join Date: May 2001
Location: Europe
Posts: 6,329
Likes: 0
Received 1 Like on 1 Post
Post

yes but they would still have the tool bar at the top, so they could type in a webpage and go to it..
Old 21 September 2002, 03:00 PM
  #11  
IWatkins
Scooby Regular
 
IWatkins's Avatar
 
Join Date: Mar 2000
Location: Gloucestershire, home of the lawnmower.
Posts: 4,531
Likes: 0
Received 0 Likes on 0 Posts
Post

Erm, true
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
KAS35RSTI
Subaru
27
04 November 2021 07:12 PM
Sam Witwicky
Engine Management and ECU Remapping
17
13 November 2015 10:49 AM
FuZzBoM
Wheels, Tyres & Brakes
16
04 October 2015 09:49 PM
buckerz69
Wanted
3
04 October 2015 09:28 AM
Ganz1983
Subaru
5
02 October 2015 09:22 AM



Quick Reply: Trying to close main browser window however...



All times are GMT +1. The time now is 05:20 PM.