function BlazorFocusElement() { if (document.getElementById('allButtons') != null) { var childDivs = document.getElementById('allButtons').getElementsByTagName('button'); for (var iElement in childDivs) { if (childDivs[iElement].type == 'button') { childDivs[iElement].blur(); } else { break; } } } }