These scripts all deal with information about the visitors. See how many sites they've been to since they started their browser, their hostname, and a bunch of information about their browser. These are our favorite scripts! Some are very difficult to write - just look at the code. General questions about these user-details scripts here should be posted to The JavaScript Forum.
Jupitermedia Corporation and The JavaScript Source are not responsible for the use, misuse, or abuse of the potentially privacy-invading scripts herein. You, the user, solely hold this responsibility.
More on internet.com
Title:AOL Links Contributor:Corey (638@gohip.com) Contributor URL:http://six38.tripod.com Details: 0.50 KB * Uploaded August 24 2001 Description: Let someone add you to their AOL Buddy List or have them send you an Instant Message with text in the message block that you can choose! And it's only two lines of code!
Title:BG based on Screen Resolution Contributor:Hamid F. Fard (hamid@petanet.com ) Contributor URL:http://www.petanet.com Details: 2.00 KB * Uploaded April 4 2002 Description: There are times that you want to load different background colors/images based on a viewer's screen resolution. This script is perfect for this application. It works beautifully with IE and Netscape.
Title:Browser Information Contributor:Jeff Lance (jflance@aol.com) Contributor URL:http://jlance.free.fr Details: 2.52 KB * Uploaded October 10 2001 Description: If your visitors are not quite sure the details of the browser they are using, you can show them with this neat little script. The script will produce a table that shows the browser name, version, platform name, and whether Java is enabled . Updated!
Title:Browser Information Details: 1.34 KB * Uploaded June 12 1998 Description: 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.
Title:Browser Name Details: 0.50 KB * Uploaded August 23 1997 Description: How would you like to know the 'hi-tech' browser name for you web browser? Go here!
Title:Browser Properties Details: 3.31 KB * Uploaded January 29 1999 Description: More information about the web browser than you knew existed! Find out the code name, color depth, platform, if java is enabled, resolution, ip address, hostname, and more! Simply incredible.
Title:Browser Redirection Details: 0.63 KB * Uploaded August 23 1997 Description: If you maintain a separate page optimized for MSIE and another for Netscape, then this script will send visitors to the appropriate page.
Title:Browser Version Contributor:Gregor (legreg@legreg.de) Details: 1.39 KB * Uploaded March 20 2001 Description: Unlike the previous browser information scripts, this one supports Netscape 6 and Opera browsers!
Title:Browser & Version Redirect Details: 1.08 KB * Uploaded June 28 1999 Description: If you maintain separate pages for Netscape and Internet Explorer browsers and want to additionally divide each browser's page into version pages, this script is for you. The script will create a link (or can be changed to automatically redirect) to browser[version number].html. (For example, a visitor with Netscape 4.5 would see a link to netscape4.html)
Title:CSS Support Redirect Details: 0.67 KB * Uploaded September 2 1999 Description: Cascading Style Sheets (CSS) are supported in version 4.0 and new browsers. So, you can easily redirect visitors to your site who have CSS (those with version 4.0+ browsers) to your CSS page, and send everyone else who doesn't have CSS to a normal page without CSS. Cool!
Title:History Length Details: 0.52 KB * Uploaded August 23 1997 Description: Shock your visitors by telling them how many sites they have been to since they began using their browser!
Title:Hostname Details: 1.20 KB * Uploaded December 20 1997 Description: (works only for Netscape Browsers with Java enabled) If you would like to get your visitors computer hostname, use this script. Very cool.
Title:IP Address Contributor: Contributor URL:http://www.kdcgrohl.com Details: 1.09 KB * Uploaded October 3 2001 Description: This script displays the user's IP address in the title bar, status bar, and/or an alert box.
Title:IP Address Filter Details: 0.79 KB * Uploaded August 2 1999 Description: (Netscape 4.0+ with Java enabled only!) JavaScript can prevent visitors with certain IP addresses from visiting your site. Simply enter part of their IP address (the more you enter the greater the chance only the intended person will not be able to enter your site) and they will not be able to enter the site. If anyone has a Internet Explorer workaround, we'd love to post it here!
Title:IP Address Filter 2 Contributor:kdcgrohl (kdcgrohl@hotmail.com) Contributor URL:http://www.kdcgrohl.com Details: 1.10 KB * Uploaded February 6 2002 Description: Use this script to block IP addresses. Just add the address to the script and it will be blocked from entering your site.
Title:IP Grabber Details: 0.71 KB * Uploaded February 28 1999 Description: (Netscape only, and Java must be enabled) Whether it's ethical or not, getting information on your site's visitors is just plain neat. As one of the most requested scripts, this little gem will allow you to get the user's IP address! Neat!
Title:Java Enabled Redirect Details: 0.54 KB * Uploaded August 12 1999 Description: If Java is enabled in the visitor's browser, they are redirected to a Java-enhanced page. Otherwise, if Java is disabled they are sent to the non-java page. Neat!
Title:JavaScript Enabled Redirect Details: 0.86 KB * Uploaded September 7 1999 Description: If your visitor has JavaScript enabled in their browser, they are automatically redirected to your JavaScript-enhanced page. If their browser doesn't support JavaScript or they have it disabled, the NOSCRIPT code will display a link to another page without JavaScript.
Title:JavaScript Version Details: 1.24 KB * Uploaded July 3 1998 Description: Neat little example which displays what JavaScript version the visitor's browser supports. It's pretty neat, extremely simple. Check it out!
Title:Language Details: 1.95 KB * Uploaded October 29 1999 Description: (Version 4.0+ browsers) Redirects a user to the page based on their language. For example, English language user browsers, which report the language as 'en' in most cases, can be redirected to an English page, while Spanish language user browser, which report the language as 'es' in most cases, can be sent to a separate Spanish page. This method works well for redirecting users in all the languages that you set up. Instructions on adding more languages are included in the source code.
Title:Must Visit From.... Details: 0.62 KB * Uploaded June 30 1999 Description: If other sites links directly the sub-pages of your site or if previous required pages are being skipped, you can now require your visitors to come from a certain page! Those that did not come from the required page are alerted then send back to the required previous page. Clever!
Title:Optimized Popup Contributor: Ronnie T. Moore Details: 1.06 KB * Uploaded March 6 2000 Description: Opens a new full screen browser window optimized for the visitor's browser (Netscape, Internet Explorer, or Other). As well, the properties of new window can be customized -- such as the toolbars, scrollbars, menu bar, location bar, the status bar, and whether it is resizable or not. Great!
Title:Platform Page Details: 0.53 KB * Uploaded May 21 1999 Description: Do you maintain a different version of your site for Windows and another for Mac users? Or, when allowing your visitor to download items from your site, would you like to automatically redirect them to the appropriate software download page for their computer? This script does it all, and it's short too!
Title:Plugin Page Contributor:Mattias Jonsson (gt96mjn@blg.du.se) Contributor URL:http://www.du.se/~gt96mjn Details: 0.72 KB * Uploaded June 12 1998 Description: If you maintain separate pages, one plugin enhanced, the other not, here's a simple way to send your visitors to the right page automatically. Besides being a very short script (it loads fast) you can modify the code to look for any plugin you want. Give it a try!
Title:Plugins Table Details: 2.31 KB * Uploaded August 23 1997 Description: JavaScript can create a table to display all the plugins displayed on your computer. Also tells if they are enabled, etc....
Title:Plugins Alert Details: 0.91 KB * Uploaded August 23 1997 Description: JavaScript will count how many plugins are installed then make a remark based on that count to your visitors - totally written in JavaScript!
Title:Redirect if Page Moved Contributor: Sandeep Gangadharan Contributor URL:http://sivamdesign.com/scripts/ Date Uploaded: June 30, 2006 Description: This script will automatically redirect the visitor to another page after a given number of seconds if the requested page is no longer available or has been moved to a new location.
Title:Referrer Details: 0.52 KB * Uploaded December 21 1997 Description: It's always fun to show how good you are with JavaScript. This script will show where the visitor came from. Pretty cool!
Title:Referrer Redirect Contributor: Ronnie T. Moore Contributor URL:http://javascriptsource.com Details: 0.84 KB * Uploaded September 19 2000 Description: Redirects the user based on the referring web address. Now its a breeze send people to different sections of your site based on where they came from. Clever!
Title:Resolution Image Contributor:Daniel Farmer (danfarmer@hotmail.com) Contributor URL:http://www.mp3.com/protoculture Details: 0.96 KB * Uploaded December 2 1999 Description: (Version 4.0+ Browsers) Loads an image with different dimensions based on the users screen resolution setting. Higher resolution browsers see an image with increased dimensions and lower resolution browsers see an image with decreased dimensions. This separation ensures that each browser sees the image size that looks best in their browser. Great use of JavaScript1.2 also!
Title:Right Browser Contributor URL:http://www.geocities.com/SiliconValley/6052 Details: 1.46 KB * Uploaded February 22 1998 Description: How do you let your visitors know that they do or do not have the right browser to view your site? Use this JavaScript! It'll tell them if they are using the right browser and the right version, or not....
Title:Safe Colors Contributor:The Radiance Group, Inc. (info@radiancegroup.com) Contributor URL:http://www.radiancegroup.com Details: 1.35 KB * Uploaded April 2 1998 Description: If you are involved with graphics creation or website design, it's important to understand how colors are seen on different browsers and different platforms. This script will show you all the "safe" colors, the ones that show up the same for all browsers and platforms. So, when you design a site or create an image, be sure to use the "browser-safe" colors! Don't you just love JavaScript?
Title:Screen Details Details: 1.41 KB * Uploaded December 21 1997 Description: Use this script to show visitors several interesting details about their screen - the screen width, screen height, and screen resolution of their browser window!! You might use this script to suggest that your visitors expand their browser to a larger size before accessing your site, etc.
Title:Screen Percentage Contributor: Giulio Gravinese Contributor URL:http://www.universeg.com Details: 1.45 KB * Uploaded September 29 1999 Description: (Requires 4.0+ browsers) Displays what percentage of your screen's total area is being used by the browser window. This script will not even be run and will not cause errors in lower version browsers.
Title:Screen Size Details: 0.51 KB * Uploaded August 23 1997 Description: JavaScript can even tell the visitor their screensize in the format: XX pixels by XX pixels. Very neat.
Title:Simple Info Line Contributor: Netscape Contributor URL:http://www.netscape.com Details: 4.65 KB * Uploaded January 24 1999 Description: Do you just not like the browser and computer "user agent" line that the web browsers use? This neat script (written by Netscape!) actually converts the user agent line into a more "user friendly" form, indicating the user's computer platform, browser version, and more! Check it out!
Title:User Report Contributor:Dion (yobo42@hotmail.com) Contributor URL:http://www.iinet.net.au/~biab/ Details: 2.61 KB * Uploaded November 2 1999 Description: Besides basic browser identification (type, version), Netscape users can also see an extensive list of every mimeType and every plugin on your computer. Select one from the pulldown menu and even *MORE* information is displayed in the box. Finally, such additional details as screen width, color depth, and how many sites you have visited so far finish of an incredible display of pure JavaScript power. Wow!
Title:Visitor Monitor Details: 2.16 KB * Uploaded August 23 1997 Description: If you are really interested in knowing who has come to your site, use this script. You will receive an e-mail from each visitor without them sending it. Very sneaky!