Take the 2-minute tour ×

Is there a way to prevent Internet Explorer from throwing up a security message (the yellow bar) every time my site loads up.

For example, I'm working on a microsite at the moment which uses Jquery to automatically brings up a lightbox when the page loads. This works fine in Chrome, Firefox etc. However, in IE the yellow bar jumps up and gives the following message:


Obviously this means that the lightbox doesn't appear until the user clicks on 'Allow blocked content'. It's essential that the lightbox is displayed before anything else, so I'd really like to bypass the security message. Is there a way to code my site so that this doesn't happen?


share|improve this question
add comment

3 Answers

up vote 5 down vote accepted

I'm pretty sure that only happens if you call the page locally, e.g. you have C:\index.html in your address bar; try uploading you code to your server and seeing if that eliminates the problem.

share|improve this answer
That appears to have solved it, brilliant! Thanks –  Chris Jul 27 '12 at 11:54
add comment

Without knowing more about your site I would suggest a process-of-elimination approach; remove things from your website until you find out what is triggering the warning in IE.

Then you can ask a more specific question on SO about whatever-it-is that is causing the issue.

With the details you've given it's hard to be any more specific.

share|improve this answer
add comment

Is the warning coming up during local development? In most cases once it is deployed to a server it will work fine, without error.

share|improve this answer
add comment

Your Answer


