Javascript strange behavior on IE

I noticed a strange behavior of IE (any version : 7, 8 or even 9) when executing JavaScript : Drag and drop don't work, but when I press F12 button twice it work perfectly (F12 developer tools)

On Chrome, all code work in perfection, but in IE I should press F12 twice to let code run perfectly.

Can anyone explain what is this bug?

Answers:

Answer

I guess its because you are using console.log in your code

console.log is available after you open Developer Tools in IE. Use a try catch;

try{
    console.log('log')
}
catch(err){
}

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.