<ch5-import-htmlsnippet url="ch5-import-htmlsnippet/ch5-import-htmlsnippet-content.html"> </ch5-import-htmlsnippet> <div id="afterLoad" style="color:#008a00;font-weight:bold;text-align:center;"></div>
var load = "CH5-Import-Htmlsnippet is Loaded Successfully"; var importData = document.getElementsByTagName("ch5-import-htmlsnippet"); importData[0].addEventListener('afterLoad', function(){ document.getElementById("afterLoad").innerHTML = load; });