Document Mode

Source Code

    	document.getElementById('output').innerHTML = 'the current document mode is: ' + document.documentMode;
        document.getElementById('output').innerHTML += 'the current user agent string is: ' + navigator.userAgent;
    

Result