Frage

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?

War es hilfreich?

Lösung

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){
}
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top