Category "internet-explorer"

IE issues with 'focus' event

I have an app that must run in IE 7/8(compat). (I know, right?) The app includes the following functionality.... If I click on a dropdown list, the list checks

Inline handler not being called in IE9 for select element

I'm trying to figure out what could be causing a problem in IE9 on a production machine. We have a <select> combo box with an inline change handler (I'm a

Cancel onclick event in IE5

I want to cancel inline onclick event <p id="demo" onclick="alert(1234)"></p> in certain condition, so I am using a global onclick event to conditi

Empty ActiveXObject("Microsoft.XMLDOM") in IE 11

I am using ActiveXObject("Microsoft.XMLDOM"); to help loadan XML file that I have. I know that IE 11 now support DOMparser, but after reading this stack mover f

How to know if browser has PDF viewer or not?

I am viewing PDF into iframe. It works fine. But some of the client don't able to see it in IE. They get it as download option. How can I identify if browser

Nested Tables, how to stop jquery event firing IE9

Suppose I have a nested table like the following: <table id="search"> <tbody> <tr><td>a</td></tr> <tr><td&g

IE11: Printing infinite pages

Basically, in IE11, when you try to print preview (or print, for that matter) this page (and a few others on this site), the page never renders in the preview p

What version of IE doesn't pass the event as argument to listeners?

As some old versions of IE didn't provide the event as argument to event listeners, we got used to (event||window.event). In order to decide whether it can sti

Including js from raw.github.com

I have a github.com demo page that is linking to https://raw.github.com/.../master/.../file.js so that I don't need to always copy the .js file over to the gh-p

event.ctrlKey is not functioning in IE

$('a').click(function(event){ if( event.ctrlKey || event.target.href){ return false; } }); Working fine in Firefox and Chrome, but not in IE. Plea

IE9 - Not able to disable ESC key to stop closing lightbox

I have used below code - Its not working on IE9 but works fine on Firefox and Chrome $(document).ready(function(){ if (document.addEventListener) { // al

Is there a bug in this code example from "Beginning JavaScript with DOM Scripting and Ajax" or I am missing something?

I'm reading a book called "Beginning JavaScript with DOM Scripting and Ajax" (2006) On Page 168/139 it offers some example code, a stopBubble function, which pr

How to catch a "load" event on STYLE tag with IE?

Let's say I have the following code: var style = $("<style/>") .html("body{background:grey; color:white;} /*and more CSS style*/") .on("load", fun

Change and blur events of input field are not fired

At least IE9 and IE10 have strange behaviour. I have four input fields and subscribe on their change events. I have logic which disables first input field insid

Internet Explorer leaks click event after adding an overlay in a jQuery mousedown handler

In a mousedown event-handler of a div another new div is created and appended to the body. This new div has position:fixed (can also be position:absolute) and h

How to attach an event in IE?

I try to attach an event on a input element, then I put this code on onload of body element: bornDate.attachEvent("onblur", validade(true)); But in onload, the

How to use oncopy in Internet Explorer

Is there a way to make this work in IE? It works in Chrome and Firefox. <html> <body> <div oncopy="alert('text copied')"> Copy me

Disabling the long-running-script message in Internet Explorer

I have a JavaScript function that contains a for loop that iterates so many times. After calling this function, the IE browser displays this message: Stop

Adding buttons dynamically using JavaScript

I am trying to create a simple html page some dynamic buttons. This is what I did so far: <HTML> <BODY bgColor="#d4d4d4" onload="OnLoad()" > <

Regex returning a value in IE, 'undefined' in Firefox and Safari/Chrome

Have a regex: .*? (rule1|rule2) (?:(rule1|rule2)|[^}])* (It's designed to parse CSS files, and the 'rules' are generated by JS.) When I try this in IE, all