2

Is there a solution to get Internet Explorer to behave as Firefox or Chrome? I am looking for a solution that would not use css hacks. I mean maybe some scripts to force change all behavior of IE.

Thanks a lot!

Paul Sweatte
  • 24,148
  • 7
  • 127
  • 265
anoock
  • 39
  • 3

5 Answers5

4

You can have your users download and install Google Chrome Frame, then add this meta tag to your page head per the Chrome Frame developer guide:

<meta http-equiv="X-UA-Compatible" content="chrome=1">

Of course, this requires user action. You can't control what browser your users use, nor can you force a certain browser to act like another browser through your own code alone.

BoltClock
  • 700,868
  • 160
  • 1,392
  • 1,356
  • I would argue that this is only a theoretical approach...Also how easy is it to switch back and forth between real IE and Chrome if you were to convince your users that this was better than installing Chrome :-) – TGH Mar 28 '12 at 03:37
2

Sorry can't be done, this is one of the many joys of being a web developer.... Browser quirks :-)

TGH
  • 38,769
  • 12
  • 102
  • 135
  • Yeah =(, but I thought perhaps something came up that I do not know. – anoock Mar 28 '12 at 04:07
  • And let the whole world wait (с) Internet Explorer =) – anoock Mar 28 '12 at 04:07
  • It's painful to support browsers like IE6/IE7, but I think IE8 and IE9 seem to be ok :-) – TGH Mar 28 '12 at 04:10
  • For general web development no one should now support IE6, Google, M$ and Amazon don't so why should you. If the client insists, you also insist that they pay more..=) – TheAlbear Mar 28 '12 at 09:27
  • Yes, every day i'm trying to convince my booss don't support IE6, but our Google analytics shows deplorable results. Around 38% of visitors under IE6. Costs of our region =( – anoock Mar 28 '12 at 10:39
1

Nope. IE sucks because it sucks. Closest you get is something like IE7.js but it comes with limitations and drawbacks. It can't for example magically give IE full SVG or WebGL support but it can give IE better CSS selector support and fix some bugs.

SpliFF
  • 38,186
  • 16
  • 91
  • 120
1

I've had good experiences with combining these two libraries: http://code.google.com/p/ie7-js/ & http://code.google.com/p/html5shim/ to adjust for various css variances and newer html5 tags. Can't say if it'll solve any of the issues you have, and it may in some cases still require some css conditionals / hacks, but it'll most certainly iron out many smaller issues.

So I usually drop these into my header of any major project:

    <!-- Let's make IE6-8 bend to our will -->
<!--[if lt IE 9]>
    <script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>
  <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
Stagen
  • 70
  • 1
  • 6