Click to See Complete Forum and Search --> : Closing Explorer using button


jwiper
06-10-2005, 02:35 PM
Does anyone know the code for closing Internet Explorer. I don't just want to close the window, I want to close Internet Explorer(the program itself). I will be attaching the code to a button in a form.

Stephen Philbin
06-10-2005, 03:09 PM
Does anyone know the code for closing Internet Explorer. I don't just want to close the window, I want to close Internet Explorer(the program itself). I will be attaching the code to a button in a form.

I doubt even Internet Explorer would be so crap as to allow something as invasive as allowing a single line of Javascript end IE as a whole.

Why exactly would you want to do such a thing? Attempting to close other peoples sites strikes me as rather....... odd.

jwiper
06-10-2005, 03:21 PM
I need it close the program so users can access another program underneath the website. The website loads over their existing program, and when they want to exit, I need explorer to close so they access the buttons on the other program. Right now, I'm using javascript:

<FORM NAME=INPUT ACTION=javascript:window.close(); METHOD=GET>
<INPUT TYPE=IMAGE margin:0 src='commonGraphics/g2BUT.gif' vspace="0" hspace="0" border="0" valign="bottom">
</FORM>

It works part time, closing it during one session and just reducing its size at other times.

Stephen Philbin
06-10-2005, 03:25 PM
Oh right. So hang on. You're making an application (written in something like C++ ?) that launches an instance of IE to utilise a form to send data back to your application and close the instance of IE? Couldn't you just have a form in your application?

buntine
06-10-2005, 03:51 PM
Or feel content with the knowledge that the users understand the x in the right-hand corner of the window does, infact, close IE. :)

NogDog
06-10-2005, 09:09 PM
<button type=button onclick="window.close();">Close windwow</button>

Obviously, only works if user has Javascript enabled and browser supports this.

Stephen Philbin
06-11-2005, 06:33 AM
I think (s)he wants to kill IE as a whole, not just that single window. Don't think even IE would be so crap as to support something like that.

NogDog
06-11-2005, 07:06 AM
IE pops up a message window asking if you really want to close the browser, then closes it if you click on OK.

FF seems to just ignore the whole thing.

jwiper
06-13-2005, 08:27 AM
I've tried the window.close(), but it doesn't always work. I need the button to close the IE app. itself. Also, the users have touch screen so I need to attach code to a button as shown in my first messages for it to work properly.