I am using find () function for one of my project. Official document https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find says that Internet Explorer is not supported. What else can I use? Answer A polyfill is a code that provides the functionality that you normally expect the browser to provide you natively. Here is the polyfill for Array.find
Tag: internet-explorer
ie return ‘)’ expected when trying to make bookmarklet
writing a bookmarklet, which is about 300 lines of JS code. been getting all kind of error all day. what I did was write the JS and test in console then I use https://www.toptal.com/developers/javascript-minifier/ to compress the code then add javascript:(code)() to it. the latest problem I have is adding the following function to my code and keep getting expected
‘unexpected quantifier’ regexp error in IE11
I have a strings like SHM{GHT} and need to get a value from brackets (GHT in this example). I use RegExp to get it and everything worked fine before I open it in IE. My page broke here and I got an error unexpected quantifier. Here is my function I checked on CanIUse .match() should work fine, something wrong with
Prevent my website from running in Internet Explorer
I don’t want anyone to run my website in Internet Explorer, so I have added the following JavaScript call at the very beginning of the first .js file in my website, the file name is screen.js screen.js I have the following .js files in my bundle (ASP.NET MVC syntax): The above code runs fine in Chrome but IE does not
autoComplete.js Uncaught (in promise) undefined and can’t select autocomplete result on IE 11
I’m using the autoComplete.Js library for my project. But I need it to work on IE11. I added the missing polyfills to make it work properly but I still get an issue. Autocomplete results should disappear by clicking on it and fill in the input with the selected result (classic autocomplete behavior). On IE11, clicking on a result doesn’t do
edge how to enable resizeable about the popup window
I used window.showModalDialog(url,windowName,status)to open a popup window on IE and the popup window can’t resizeable. The showModalDialog doesn’t work on Edge ,so I use window.open(url,windowName,status) to replace it on Edge,but the resizeable=no option of window.open(url,windowName,”resizeable=no”) does’t work on Edge. How can I enable my popup window resizeable with window.open() on Edge? Answer The showModalDialog() method is obsolete. For window.open(), IE
Alternative version for Object.values()
I’m looking for an alternative version for the Object.values() function. As described here the function is not supported in Internet Explorer. When executing the following example code: It works in both, Firefox and Chrome, but throws the following error in IE11: Object doesn’t support property or method “values” Here you can test it: Fiddle. So, what would be a quick
How do try…catch statements really work in IE?
I have a foreach() loop in this function and by searching the internet I know, that for each loop doesn’t work in IE. To save my time I simply put a: try {} catch {} around it, but IE still reminds me, by function call, that there is an error. Why does IE 11 work ? Code: Code: I get
Iterating through FormData in IE
I’m using FormData to send information back to the server. In some cases however I need to read out the data before I send it. Chrome allows you to iterate through the collection but IE does not supply the same methods. The code below works in Chrome: JS Fiddle Does anyone know how to achieve the same result in IE?
How to load a script only in IE
I need a particular script to be triggered in Internet Explorer browsers Only! I’ve tried this: Unfortunately this actually stops the script from being loaded. EDIT: For everyone asking why I need this: IE makes scrolling extremely jumpy when using some animations. In order to address this I need to implement a script that provides smooth scrolling to IE. I