ActiveXObject
is available only on IE browser. So every other useragent will throw an error
On modern browser you could use instead File API or File writer API (currently implemented only on Chrome)
More Related Contents:
- How to retrieve GET parameters from JavaScript [duplicate]
- Correct way to write a non-blocking function in Node.js
- Mimicking sets in JavaScript?
- Javascript AES encryption [closed]
- Android Calling JavaScript functions in WebView
- How to get a style attribute from a CSS class by javascript/jQuery?
- Leaflet drawing tiles disjointly
- JavaScript summing large integers
- jQuery counting elements by class – what is the best way to implement this?
- Why in JavaScript both “Object instanceof Function” and “Function instanceof Object” return true?
- Using Array objects as key for ES6 Map
- why referencing non-existent property of an object in javascript doesn’t return a reference error?
- Three JS – Find all points where a mesh intersects a plane
- Error handling in getJSON calls
- How to clear a chart from a canvas so that hover events cannot be triggered?
- Difference between onbeforeunload and onunload
- How to make Jquery UI Tabs scroll horizontally if there are too many tabs
- Calling properly TypeScript code from JavaScript
- Choosing Mobile Web HTML5 Framework [closed]
- Check if date is in the past Javascript
- javascript float from/to bits
- Why can’t I set a JavaScript function’s name property?
- Show text letter by letter
- Does JavaScript setInterval() method cause memory leak?
- Set content of HTML with Javascript
- What is the “module” package.json field for?
- jQuery click() still being triggered after .clickable class is removed
- How to properly escape characters in regexp
- JS async/await – why does await need async?
- jquery serialize and multi select dropdown