Close IE

P

Peter

I have a request from a user:
He wants a close button on the webpage and when he clicks on the button he wants IE to close.

How would you do this?
And is this a good idea?

Thanks


Peter
 
S

S. Justin Gengo

Peter,

Button1.Attributes.Add("onClick", "javascript:window.close();"

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
I have a request from a user:
He wants a close button on the webpage and when he clicks on the button he wants IE to close.

How would you do this?
And is this a good idea?

Thanks


Peter
 
S

Scott M.

<input type="button" onClick="self.close()">


I have a request from a user:
He wants a close button on the webpage and when he clicks on the button he wants IE to close.

How would you do this?
And is this a good idea?

Thanks


Peter
 
J

Juan T. Llibre

You cannot close IE from a button on a page.
You *can*, however, close a page from a button on it.





I have a request from a user:
He wants a close button on the webpage and when he clicks on the button he wants IE to
close.

How would you do this?
And is this a good idea?

Thanks


Peter
 
S

Scott M.

....and since that page exists in a browser window, the browser gets closed
as a result.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,125
Latest member
VinayKumar Nevatia_
Top