var str = ""; if (navigator.javaEnabled()) { str += "JV:"; } if (screen.colorDepth) { str += "D" + screen.colorDepth + ":"; } else if (screen.pixelDepth) { str += "D" + screen.pixelDepth + ":"; } if (window.innerWidth) { wIW = window.innerWidth; wIH = window.innerHeight; } else if (document.documentElement && document.documentElement.clientHeight) { wIW = document.documentElement.clientWidth; wIH = document.documentElement.clientHeight; } else if (document.body) { wIW = document.body.clientWidth; wIH = document.body.clientHeight; } str += "w" + wIW + "h" + wIH + ":"; str += "W" + screen.width + "H" + screen.height;