Helping people with computers... one answer at a time.

"Secure and nonsecure" items is most often the result of bad web page design. As a user it's difficult to avoid without lowering your guard.

Can I get rid of the "This page contains both secure and nonsecure items" warning?

Not that I'm aware of, and not that I would want to. Not being notified is in fact a security risk when visiting sites you don't already know and trust. For the sites you do trust, the message results from bad site design on their part.

Update
Thank you to a few readers who posted a solution to avoiding the warning:

  • When you receive the error message, click Yes.

  • In Internet Explorer, go to Tools, Internet Options, click the Security tab; make sure that in "Select a zone..." window that Internet is selected.

  • Click Custom Level and scroll down about half way to "Display mixed content" in the Miscellaneous section.

  • Change it from Prompt to Enable.

  • Click OK, Yes, and OK. The change should take effect immediately.

Article C1951 - May 27, 2004

Leo Leo A. Notenboom has been playing with computers since he was required to take a programming class in 1976. An 18 year career as a programmer at Microsoft soon followed. After "retiring" in 2001, Leo started Ask Leo! in 2003 as a place for answers to common computer and technical questions. More about Leo.

Not what you needed?

Recent Comments
71 Comments

what I do is capture the prefix of the current browser url up to the last slash, and everywhere where the url() image is specified in javascript, I place the prefix.

example:

var prefix = location.href.substring(0,location.href.lastIndexOf("/")+1); // prefix is to remove ssl warning contains nonsecure items.

cell.innerHTML = ""

The prefix has to be used everywhere. I mean EVERYWHERE a dynamic item is created using javascript and specifying the url() to an image.

Posted by: da808wiz at December 1, 2010 2:06 PM

looks like the cell.innerHTML content was stripped.

trying with lt and gt:

cell.innerHTML = "<input type=\"button\" style=\"background:url("+prefix+"images/fancybutton.jpg)\">";

Posted by: da808wiz at December 1, 2010 2:11 PM

Thank You, Thank You, Thank You!!!!! This warning has been driving me nuts! Apparently the setting was changed by an IE8 Upgrade? as I just started getting them from sites that I had no problem accessing in the past. Just make sure you scroll down to the " Display mixed content " section before making the change. Worked like a charm Appreciate the help.

Posted by: DesertSkunk at April 17, 2011 12:32 PM

Many thanks for that tip, works brilliantly. Yahoo have messed up their home page and for days i got that error message and had to keep clicking to get rid of it. Your instructions have stopped this and stopped me getting annoyed. Many thanks

Posted by: Stu at June 1, 2011 2:27 PM

Doesn't work even has error

check below;
Webpage error details


Message: 'cell' is undefined
Line: 426
Char: 1
Code: 0

Posted by: Sunny at January 29, 2012 11:30 AM
Post a comment on "Can I get rid of the "This page contains both secure and nonsecure items" warning?":





Remember Me?

(You may use HTML tags for style)

Before commenting, please...

  • READ THE ARTICLE. A comment that shows you didn't will be deleted and ignored.

  • Comment only on the article. Use the search box at the top of the page if you have a question about something else.

  • NO PERSONAL INFORMATION in the comment. No email addresses. No phone numbers. No physical addresses.

  • Anything that looks the least bit like spam will be deleted. Links to unrelated sites or links that appear to be primarily promotional will be deleted, or the comment will be deleted.

  • Don't ask me to recover lost passwords or hacked accounts. I can't. Those comments will be deleted.

  • I can't respond to every comment. And I can't vouch for the accuracy of others who do.

Please wait. Your comment is being processed ...