IE调用Activex控件时EVENT的三种调用方式

Test 1 uses the "for" tag to setup the callback to the activeX event. This is successful on all versions IE8, 9, 10 and 11.



	
		TestEvent Example HTML
		
        
        
        
		
	
	
		

Test 2 uses attachEvent to bind the callback to the object element. The callback is correctly called on IE8, 9 and 10 but not on IE11, as was expected.



	
		TestEvent Example HTML
		
        
        
        
	
	
		

Test 3 replaces attachEvent with addEventListener. Still the event is not triggered on IE11.



	
		TestEvent Example HTML
		
        
        
        
	
	
		

你可能感兴趣的:(IE调用Activex控件时EVENT的三种调用方式)