Help and Support
 

powered byLive Search

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

Article ID:925014
Last Review:October 27, 2007
Revision:1.2
On This Page

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.

Back to the top

Method 1

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

Back to the top

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


APPLIES TO
Windows Internet Explorer 7
Microsoft Internet Explorer 6.0

Back to the top

Keywords: 
kbtshoot kbwebbrowser kbprb kberrorsandwarnings KB925014

Back to the top

Article Translations

 

Other Support Options

  • Need More Help?
    Contact a Support professional by E-mail, Online or Phone.
  • Customer Service
    For non-technical assistance with product purchases, subscriptions, online services, events, training courses, corporate sales, piracy issues, and more.
  • Newsgroups
    Pose a question to other users. Discussion groups and Forums about specific Microsoft products, technologies, and services.