Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

close the web browser

Status
Not open for further replies.

imad77

Instructor
Oct 18, 2008
97
0
0
CA
Hi,

I have a Perl/CGI script, and this script opens a Web page, and I want to add a Close button in this script.
When the user clicks on this button, it should close the Internet Explorer.

Have you any suggestion aboput the Perl/CGI command to close Internet Explorer (Browser)?

Thanks a lot.
 
You simply create a button with javasript funtion of close the window. It will alert the user and take action accordingly.

<input type=button OnClick="window.close('location.window.self');" name=button value=Close>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top