Search code examples
javascriptjqueryinternet-exploreralloy-ui

In IE9 javascript not working, but after open console it work


I have written javascript by using Alloy UI and jquery it is working fine in firefox, chrome and IE 10,11 but IE 9 its not work.

when I open console for debug it working fine.


Solution

  • You probably use console.log in the code. IE do not have the console object. This object exists only when console is open.

    try writing (at the begginig of the page/scripts)

    if (typeof(console) == 'undefined') console = { log: function () {} };