How to remove the Internet Explorer menu


When a Web application is opened in Internet Explorer, you may see both the Internet Explorer menu and the Web application menu. It is possible to design an HTML file or C++ program to remove the Internet Explorer menu.


Method 1: In the application folder under the Web server Web root, create an HTML file named appeon.html for loading the Web application. For example,

    <title>Appeon Web Library </title>
 <script language="javascript"> 
    function startApp() {
    g_newWindow ="index.html", "_blank",
  <script language="javascript">

Note: In order for sFeatures settings to take effect, the sName argument in the Open method must be "_blank". This opens a new Internet Explorer window for index.html (the index page of the Web application) and hides the Internet Explorer menu.

Instead of loading Index.html as the entry page for Appeon Web applications, load the appeon.html file using a URL similar to this: http://host:port/appname/appeon.html. When the Open method in the appeon.html file is triggered, the Index.html page will be loaded in a new Internet Explorer window.

Method 2: Create a C++ program that utilizes COM API on the Client side.

The sample code in the C++ program is as follows:

// Start a new Internet Explorer as a separate process
 IWebBrowser2* pIE = NULL;
 hr = CoCreateInstance(CLSID_InternetExplorer, NULL, CLSCTX_SERVER,
    IID_IWebBrowser2, (LPVOID*)&pIE); // if open IE OK
  if (SUCCEEDED(hr)) {
    COleVariant vtEmpty;
    CString strURL = "http://appeonserver:81"; // The URL to be opened by the program.
    BSTR bstrURL = strURL.AllocSysString();
    pIE->Navigate(bstrURL, &vtEmpty, &vtEmpty, &vtEmpty, &vtEmpty);

If the user runs the C++ program on the Client machine, the Web application will be opened in an Internet Explorer browser and the display mode of the Internet Explorer browser is specified in the C++ program.