How do I view cookies in Internet Explorer 11 using Developer Tools

I’m looking for how to view the cookies set using developer tools in IE11. I see an option in network profiling to view cookies being sent back and forth, but this is not really the same thing. It is cumbersome to use since it’s per request. Surely there must be a way to view all … Read more

X-UA-Compatible is set to IE=edge, but it still doesn’t stop Compatibility Mode

I am quite confused. I should be able to set <meta http-equiv=”X-UA-Compatible” content=”IE=edge” /> and IE8 and IE9 should render the page using the latest rendering engine. However, I just tested it, and if Compatibility Mode is turned on elsewhere on our site, it will stay on for our page, even though we should be … Read more

Detect IE version (prior to v9) in JavaScript

I want to bounce users of our web site to an error page if they’re using a version of Internet Explorer prior to v9. It’s just not worth our time and money to support IE pre-v9. Users of all other non-IE browsers are fine and shouldn’t be bounced. Here’s the proposed code: if(navigator.appName.indexOf(“Internet Explorer”)!=-1){ //yeah, … Read more

How can I prevent the backspace key from navigating back?

On IE I can do this with the (terribly non-standard, but working) jQuery if ($.browser.msie) $(document).keydown(function(e) { if (e.keyCode == 8) window.event.keyCode = 0;}); But is it possible to do in a way which works on Firefox, or in a cross-browser way for a bonus? For the record: $(document).keydown(function(e) { if (e.keyCode == 8) e.stopPropagation(); … Read more

Why doesn’t indexOf work on an array IE8?

The below function works fine on Opera, Firefox and Chrome. However, in IE8 it fails on the if ( allowed.indexOf(ext[1]) == -1) part. Does anyone know why? Is there any obvious mistake? function CheckMe() { var allowed = new Array(‘docx’,’xls’,’xlsx’, ‘mp3’, ‘mp4’, ‘3gp’, ‘sis’, ‘sisx’, ‘mp3’, ‘wav’, ‘mid’, ‘amr’, ‘jpg’, ‘gif’, ‘png’, ‘jpeg’, ‘txt’, ‘pdf’, … Read more

How to fix Array indexOf() in JavaScript for Internet Explorer browsers

If you have worked with JavaScript at any length you are aware that Internet Explorer does not implement the ECMAScript function for Array.prototype.indexOf() [including Internet Explorer 8]. It is not a huge problem, because you can extend the functionality on your page with the following code. Array.prototype.indexOf = function(obj, start) { for (var i = (start || 0), … Read more

Running Internet Explorer 6, Internet Explorer 7, and Internet Explorer 8 on the same machine

Like everyone else, I need to test my code on Internet Explorer 6 and Internet Explorer 7. Now Internet Explorer 8 has some great tools for developer, which I’d like to use. I’d also like to start testing my code with Internet Explorer 8, as it will soon be released. The question is: how to … Read more