I have some JavaScript functions that include code like:
if (document.all)
{ document.getElementById('subrow').style.display = 'block'; }
else
{ document.getElementById('subrow').style.display = 'table-row'; }
IE 11 returns false
for document.all
so the above code no longer works, but I need it to work for earlier versions of IE as well as IE 11 and other browsers.
How can I achieve that? Earlier versions of IE do not understand table-row
so I have to be able to differentiate.