Question

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?

Was it helpful?

Solution

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){
}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top