I know, IE 8 and 9 are out of date. But I need to check the flash plugin there. They don't provide a useful navigator.plugins array, so I looking for alternatives. One can be found here.
Another one is something like this:
var a = void(0);
window.execScript("On error resume next: a = IsObject(CreateObject('ShockwaveFlash.ShockwaveFlash.11'))", "VBScript");
console.log(a); //-> undefined
or:
var a = 'jess';
window.execScript("On error resume next: a = IsObject(CreateObject('ShockwaveFlash.ShockwaveFlash.11'))", "VBScript");
console.log(a); //-> 'jess'
or:
var a = false;
window.execScript("On error resume next: a = IsObject(CreateObject('ShockwaveFlash.ShockwaveFlash'))", "VBScript"); //no version string here
console.log(a); //-> false
It seems like either execScript or the VBScript does not change the value of a at all.
I'm guessing, that there is an issue with the scope, in which this script is executed (there is no access to a) - or a similar problem. I've tried this piece of code in an anonymous function and in the console.
Does anybody ever hit that issue? Is there any explanation or solution? Thank you very much!