I've noticed that there are 2 ways we can create ActiveX object in JavaScript, one is by embedding:
<object id="TestControl" classid="clsid:xxx-xx-xx-xx"></object>
and then later on obtain object using DOM:
var myControl = document.getElementById('TestControl');
Another way is to create instance of ActiveXObject:
var myControl2 = new ActiveXObject('Test.TestControl');
What exactly is different from ActiveX object perspective? Is one approach better then the other? Are there any differences in performance?
Thanks.