Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

You receive a security warning in Internet Explorer 7 and Internet Explorer 6 when you visit a Web page that is hosted on a secure Web site


View products that this article applies to.

Symptoms

When you use Windows Internet Explorer 7 or Internet Explorer 6 to visit a Web page that is hosted on a secure Web site (HTTPS), you unexpectedly receive the following security warning:
This page contains both secure and nonsecure items. Do you want to display the nonsecure items?

↑ Back to the top


Cause

This problem occurs if the Web page script calls the removeChild() method to delete a DIV element that references a background image.

↑ Back to the top


Workaround

To work around this problem, use one of the following methods.

Method 1

Use the outerHTML property to delete the DIV element, as in the following example:
document.getElementById('myDiv').outerHTML="  "

Method 2

Put the background-image into a cascading style sheets file, as in the following example:
<style type="text/css">
{ background-image: url(image.jpg); } 
</style>

↑ Back to the top


Keywords: KB925014, kbwebbrowser, kberrorsandwarnings, kbtshoot, kbprb

↑ Back to the top

Article Info
Article ID : 925014
Revision : 4
Created on : 10/27/2007
Published on : 10/27/2007
Exists online : False
Views : 272