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 still make some sense to have this in a modern library, I tried to look at what versions were concerned but I couldn’t find this information. So, what’s the most recent version of
Tag: internet-explorer
Javascript-generated .ics file opens in Chrome and Firefox, but not in IE
I’m generating a .ics calendar entry from JS, next I open it using a data-URI: Where “icsMSG” is the dynamically generated .ics file. Here’s a sample output from console.log: The raw output will be have n chars at the end of each line, as per the specification. The above sample works fine when I run it from Chrome or Firefox,
Internet Explorer 11 detection
I know IE 11 has different user agent string than all other IE I have tried to detect IE 11 with answer specified for this question’ Jquery fail to detect IE 11 Thats !!navigator.userAgent.match(/Trident/7./) But I am getting error Object not found and needs to be re-evaluated. Then I openede developer console in IE11 and tried to access some predefined
View JSON file in Browser
It is not a programming question, but need your views in few words. When we hit the JSON url in Broswer, it asks us to save the file. Why this happens ? Is there any way to view it on the page itself ? Is there any addon available to view JSON file in browser? Answer In Chrome use JSONView
Javascript Named Function Expressions in Internet Explorer
Why does the following code not work in Internet Explorer (I’ve only tested in IE8 so far): If I change foo’s assignment to the following, the code works just fine: I imagine it’s something to do with named functions in IE’s Javascript engine. The code works fine in Chrome and Firefox. Any ideas? Answer IE has a lot of problems
How to set onmousedown event for dynamically created div in IE?
I have a (Javascript) tool which dynamically creates a div whenever the user clicks on the screen. Now, after I’ve created _newDiv, I want to assign a onmousedown event to it. This works perfectly in Firefox, but doesn’t work in IE 8. Is there any hack I can use to solve this problem? Answer Problem solved! It turns out that
Table Row’s OnClick Event is Propagated to all Contained Elements?
I’ve run into some interesting code in our legacy application running under Internet Explorer. Consider the following: So, here’s where I’m stumped. When the user selects an item from the SELECT element, the ONCLICK event is firing, and the following are true: this evaluates to Window Window.event.srcElement evaluates to an array of ‘OPTION’ elements There doesn’t seem to be a
why can’t i set window.onload in IE8?
I have the following function, which works fine in Firefox, but will do nothing in IE8 I want to open a webpage and immediately open the print dialogue. Answer If you have the hand on the page at url, place the call there. In the HTML, at the end of the BODY tag. Add a SCRIPT tag with your call
Changing the type in IE with JavaScript
This code below works in all web browsers except IE: How can I fix it for IE? I did some changes, but it still has an error. I want it to work like this like here: if I don’t enter anything it will put the value back. So I tried this: as you can see the blur does not work.
Knowing whether window.close() will show a security warning
In IE7, a child window opened with window.open can close itself using window.close(), but a window opened with <a href=… target=_blank> will show a security warning if the child window tries to close itself. In my application, I don’t know how my child window is opened, and I need to know (in the child window JavaScript code) whether I can