Display A Pop-Up Message To Your Users In Microsoft Exchange 2010 Outlook Web App

Leave a comment
Share

This article will show how you can get OWA to display a pop-up message to your users each time they log in. An organisation might want to do this to remind someone logging in that they are accessing private data.

First, locate the startpage.aspx file in C:\Program Files\Microsoft\Exchange Server\v14\ClientAccess\Owa\forms\premium. Make a backup copy, then open it in Notepad. Press F3 to search for the text <body. Immediately after it, insert a block of code, like this:

  <script language="JavaScript">
  alert(
  "You are about to enter\n" +
  "a private web site."
  );
  </script>

Note that the message above is a two-line message. The \n at the end of the first line tells the browser to display the second line of text on a new line. Save the file and close it, and you’re finished.

That takes care of the Premium OWA GUI. The Basic one is a little more tricky. Locate the basicmessageview.aspx file in C:\Program Files\Microsoft\Exchange Server\v14\ClientAccess\Owa\forms\basic. Make a backup copy, then open it in Notepad. Again, press F3 to search for the text <body. Immediately after it, insert a block of code, like this:

  <script language="JavaScript">
  if(window.location.href.toUpperCase().indexOf("/OWA/?") == -1)
    alert(
    "You are about to enter\n" +
    "a private web site."
    );
  </script>

Save the file and close it, and you’re finished doing the Basic client.

As with most of these type of modifications, you will need to check that they still function after each product update. Sometimes your modified file will be replaced by a new one from the update.





Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>