JSFiddle - React, Tailwind, and code Playground

by Zacc206

HTML

<h1>3.1 Testing</h1>

JavaScript

$(document).ready(function(){
    alert("Running!");
    
    try {
        var obj = new ActiveXObject('Name.NameCtrl.1');                      
        obj.OnStatusChange = EBCOnStatusChange;
        $('html').addClass("ActiveXObjExists");
    }
    
    catch(err) {
        console.info(err.message);
    }                
    
    if(ObjExist())
        alert("This should not be hit");
    else
        alert("The OBJ failed!");
               
    alert("It's okay though, evaluation did not prevent parsing!");   
});

function ObjExist(){
    var output = false;
    
    if($('html').hasClass('ActiveXObjExists')){
        output = true;
    }
    
    return output;
}