Javascript: display all user info (ie. the navigator object) for debugging -
I was going to write a script to get everything out in the navigator (except the user) to ask the user who they -What's the browser / operating system running, I'd like to tell them all on a page that makes everything interesting), and it's happened to me, it's probably done a million times ago
Do you want to dump all interesting user information? Defense cross browser, aware of the light script? Bonus points if I have a clever way of getting data (i.e. avoiding cut-paste-email).
This is a great website, I always point to those people when they helped them Plus:
Plus, this is the built-in system to send email if you want to create your own, but if you want to turn it off based on your code, then its Most code is as follows:
// screen if RSS (self.screen) {S_RESOLUTION = screen.width + 'X' + screen. height; S_COLOR_DEPTH = screen. ColorDepth + 'bit'; } And if (Java itself) {var javaobj = java.awt.Toolkit.getDefaultToolkit (); Var screenobj = javaobj.getScreenSize (); S_RESOLUTION = Screenbose. Wide + 'X' + ScreenShow. height; If (self.screen) S_COLOR_DEPTH = screen.colorDepth + 'bit'; ; } // Browser size var bsw = ''; Var bsh = ''; If (window.innerWidth) {BSW = window.innerWidth; Bsh = window.white; } And if (document.documentElement) {bsw = document.documentElement.clientWidth; Bsh = document.documentElement.clientHeight; } And if (document.body) {bsw = document.body.clientWidth; Bsh = document.body.clientHeight; } If (BSW! '' & Amp; amp; amp; BSc! = '') {S_ BROWSER_SIZE = BSW + 'X' + BSH; } // Browser type if (S_USE_CLIENT_FOR_BROWSER == "1") {var browser = $ .browser.name + "" + $ .browser.version; S_BROWSER_TYPE = Browser; S_BROWSER_TYPE = S_BROWSER_TYPE.replace ("msie", "Internet Explorer"); If (S_ BROWSER_TYPE.length & gt; 0) {S_BROWSER_TYPE = S_BROWSER_TYPE.substring (0, 1) .toUpperCase () + S_BROWSER_TYPE.substring (1, S_BROWSER_TYPE.length); } S_BROWSER_VERSION = ""; }
Comments
Post a Comment