Close Web Viewer browser window without warnings

Questions commonly asked and their answers. Be sure to check here first if you have a problem.

Moderator: Typhoon Software

Close Web Viewer browser window without warnings

Postby Typhoon Software » Tue Nov 07, 2006 11:37 pm

You may want to add a link or button to your web page to close the window. Unless the window was opened with Javascript, IE will give a warning message asking if you really want to close the window. AutoRun can hide this message and silently close the browser window.

AutoRun has also been updated ( -- Version 3.1.9 Nov 07/2006) recently to handle these events in the new IE7.

Below is a sample web page with the links you would need to silently close the browser window:

<TITLE>Silent Close Options for Web Viewer</TITLE>

<SCRIPT LANGUAGE="Javascript">
function CloseWindow()
document.location.href = "window.close()";
// -->


<P><A HREF="window.close()">Close with Link</A></P>

<INPUT TYPE="BUTTON" NAME="SUBMIT" VALUE="Close with Button" OnClick="CloseWindow()">


<b>Typhoon Software</b>
Typhoon Software
Posts: 483
Joined: Thu Jan 19, 2006 1:09 am

Return to Frequently Asked Questions

Who is online

Users browsing this forum: No registered users and 1 guest