User Detail Scripts | JavaScriptSource

User Detail Scripts

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.

QuinStreet Inc. 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.

  • User Details : Redirect if Page Moved
    Jun 30, 2006

    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.

  • Lots Of Info
    Daniel Beckett Sep 24, 2002

    This script displays loads of information varying from your PC/Mac to the date.

  • BG based on Screen Resolution
    Hamid Fard Apr 4, 2002

    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.

  • IP Address Filter 2
    Feb 6, 2002

    Use this script to block IP addresses. Just add the address to the script and it will be blocked from entering your site.

  • Browser Information 2
    Jeff Lance Oct 10, 2001

    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!

  • IP Address
    Oct 3, 2001

    This script displays the user's IP address in the title bar, status bar, and/or an alert box.

  • AOL Links
    Aug 24, 2001

    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!

  • User Language and Country
    Jason Specht Aug 6, 2001

    Identify the language and country of the user's browser. Very comprehensive! IE only.

  • Browser Version
    Mar 20, 2001

    Unlike the previous browser information scripts, this one supports Netscape 6 and Opera browsers!

  • Info Table
    Chad Cunningham Sep 9, 2000

    JavaScript can write a neat little box to the screen telling the visitor's browser and operating system.

  • IP Address Filter
    Sep 9, 2000

    (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!

  • IP Grabber
    Sep 9, 2000

    (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!

  • Java Enabled Redirect
    Sep 9, 2000

    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!

  • JavaScript Enabled Redirect
    Sep 9, 2000

    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.

  • Language
    Sep 9, 2000

    (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.

  • Must Visit From....
    Sep 9, 2000

    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!

  • Optimized Popup
    Ronnie Moore Sep 9, 2000

    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!

  • Platform Page
    Sep 9, 2000

    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!

  • Plugin Page
    Mattias Jonsson Sep 9, 2000

    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!

  • Plugins Alert
    Sep 9, 2000

    Because seeing a table of your plug-ins is cool and all, take a look at this script. First, the JavaScript counts how many plug-ins the user has installed. Then, it alerts the user and comments on the number of plug-ins. Pretty cool!

  • Referrer
    Sep 9, 2000

    It's always fun to show how good you are with JavaScript. This script will show where the visitor came from. Pretty cool!

  • Referrer Redirect
    Ronnie Moore Sep 9, 2000

    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!

  • Resolution Image
    Daniel Farmer Sep 9, 2000

    (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!

  • User Plugins
    Sep 9, 2000

    Use this script to display a table with all the plugins installed on the visitor's computer. Another neat script because it deals with the user's computer specifics directly.

  • Visitor Monitor
    Sep 9, 2000

    This script will send you an e-mail whenever the page with the script is loaded. This script works great as long as you don't have too many visitors or it spams your e-mail box!