This script does a great job of displaying information about your web browser including version, your computer’s platform, if Java is enabled, how many pages you’ve visited, and screen resolution. Take a look, it’s pretty cool.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 | /******************************************************* * MYCPLUS Sample Code - https://www.mycplus.com * * * * This code is made available as a service to our * * visitors and is provided strictly for the * * purpose of illustration. * * * * Please direct all inquiries to saqib at mycplus.com * *******************************************************/ <!-- ONE STEP TO INSTALL BROWSER INFORMATION: 1. Add the first code to the BODY of your HTML document --> <!-- STEP ONE: Add the first code to the BODY of your HTML document --> <script LANGUAGE="JavaScript"> <!-- This script and many more are available online from --> <!-- The JavaScript Source!! http://javascriptsource.com --> <!-- Begin var xy = navigator.appVersion; xz = xy.substring(0,4); document.write("<center></p> <table border=1 cellpadding=2> <tr> <td>"); document.write("<center><b>", navigator.appName,"</b>"); document.write("</td> </tr> <tr> <td><p>"); document.write("<center></p> <table border=1 cellpadding=2> <tr>"); document.write("</p> <td>Code Name: </td> <td><center>"); document.write("<b>", navigator.appCodeName,"</td> </tr> <p>"); document.write("</p> <tr> <td>Version: </td> <td><center>"); document.write("<b>",xz,"</td> </tr> <p>"); document.write("</p> <tr> <td>Platform: </td> <td><center>"); document.write("<b>", navigator.platform,"</td> </tr> <p>"); document.write("</p> <tr> <td>Pages Viewed: </td> <td><center>"); document.write("<b>", history.length," </td> </tr> <p>"); document.write("</p> <tr> <td>Java enabled: </td> <td><center><b>"); if (navigator.javaEnabled()) document.write("sure is!</td> </tr> <p>"); else document.write("not today</td> </tr> <p>") document.write("</p> <tr> <td>Screen Resolution: </td> <td><center>"); document.write("<b>",screen.width," x ",screen.height,"</td> </tr> <p>"); document.write("</table> </tr> </td> </table> <p></center>"); // End --> </script> <!-- Script Size: 1.34 KB --> |