Sandeep's Nook: JavaScript Page


User Details Scripts


 1. SHOW SELECTED USER INFO
    This script helps users to find out the properties of their browsers as well as a few other additional details like the resolution, colour depth, how many pages visited, etc. Just choose the property you wish to see from the drop down menu and the information will be automatically displayed in the given textarea.

Click here for the script.
 
 2. USER INFO
    Below is a script that helps you to find out the standard properties of your browser as well as a few other additional details like the resolution, colour depth, how many pages you have visited so far and more. This script also detects the Linux and Sun Operating Systems if being used. To complete this comprehensive display, Netscape users can also see a list of every MIME Type and Plug-in installed on their computers.

Click the button to find out the details:


Click here for the script.
 
 3. PERSONALISED USER INFO
    This script is very much like the one above except that it is more personalised as it asks the users to type in their name and then shows the system details along with the name in a dialog box. So this script makes your web page interactive as well as adds to the fun factor!

Click the button to run the script:


Click here for the script.
 
 4. REDIRECT AS PER BROWSER
    Using this script you can automatically redirect your viewers to pages especially created for optimum viewing in their browsers. The page in which this script should be included is the default page, i.e. the page that shall be viewed by all those using browsers not included in the script. This script is useful in nullifying those anomalies found among the different browsers that could ruin the effect of your page.

No example has been included for this script.

Click here for the script.
 
 5. REDIRECT AS PER BROWSER VERSION
    Using this script you can automatically redirect those viewers who are using older versions of IE and Netscape. This script is useful as certain scripts work only in the newer versions of IE and Netscape. In the script I have included IE and NS versions 4+ as they are the versions that support most of the newer scripts. But you can modify it according to your needs.
Here users should keep in mind that for some browsers the 'appVersion' number would not reflect the real version number of the browsers and so adjustments should be made accordingly. This information, i.e. the 'appVersion' number, can be gleaned from any of the first 3 scripts listed here.

No example has been included for this script.

Click here for the script.
 
 6. REDIRECT AS PER BROWSER & BROWSER VERSION
    Using this script you can automatically redirect viewers according to the browsers they use as well as the browser version. This script is useful as certain scripts work only in the newer versions of some of the popular browsers.
Here users should keep in mind that for some browsers the 'appVersion' number would not reflect the real version number of the browsers and so adjustments should be made accordingly. This information, i.e. the 'appVersion' number, can be gleaned from any of the first 3 scripts listed here.

No example has been included for this script.

Click here for the script.
 
 7. REDIRECT AS PER RESOLUTION
    Using this script you can automatically redirect your viewers to pages especially created for optimum viewing under the different resolutions. The page in which this script should be included is the default page, i.e. the page that shall be viewed by all those using resolutions not included in the script. This script is very useful since the resolution alone could change the way your pages are seen by different viewers which could effectively ruin all the hard work that you may have put into creating your dream page. The script covers all possible resolutions. Included are 640 x 480, 800 x 600, 1024 x 786 and 1280 x 1024.

No example has been included for this script.

Click here for the script.
 
 8. REDIRECT AS PER OPERATING SYSTEM
    Using this script you can automatically redirect your viewers to pages especially created for optimum viewing in their installed Operating System. The page in which this script should be included is the default page, i.e. the page that shall be viewed by all those using OSs not included in the script. This script is useful in nullifying those little anomalies found in the different OSs that could ruin the effect of your page. Ex.: To ensure that the fonts you include in your HTML are installed in the machines used to view your page.

No example has been included for this script.

Click here for the script.
 
 9. REDIRECT AS PER BROWSER LANGUAGE
    Using this script you can automatically redirect your viewers to pages especially created for the language of the browser used. The page in which this script should be included is the default page, i.e. the page that shall be viewed by all those using the language not included in the script.

No example has been included for this script.

Click here for the script.
 
 10. REDIRECT IF NOT JAVA ENABLED
    This script can be used to automatically redirect those users who do not have Java Enabled browsers or those who have turned off Java for security reasons.

No example has been included for this script.

Click here for the script.
 
 11. REDIRECT IF NOT WEB TV USER
    This script can automatically redirect those users who are not using WebTV.

No example has been included for this script.

Click here for the script.
 
 12. REDIRECT IF BROWSER NOT CSS ENABLED
    This script can automatically redirect those users whose browsers are not CSS/Style-sheet enabled.

No example has been included for this script.

Click here for the script.
 
 13. REDIRECT AS PER JAVASCRIPT VERSION
    This script can automatically redirect visitor's according to the JavaScript version their browsers support.

No example has been included for this script.

Click here for the script.
 
 14. REDIRECT IF PAGE MOVED
    This script can automatically redirect visitor's after a given number of seconds if the users page has moved to a new location. When the visitor's go to the old page they will get to see a message saying that the page has moved and that they shall be automatically be moved to the new location.

No example has been included for this script.

Click here for the script.
 
 15. AUTO <NOSCRIPT>
    This is not actually a script but a unique use of the <meta> tag with the help of which you can automatically forward users whose browsers do not support JavaScript or who have turned off JavaScript support, to pages that have no scripts. This ensures that the users will not have to click any link, that is usually contained in the HTML within the <noscript> tag, to go to the supporting page without scripts.

No example has been included for this script.

Click here for the script.
 
 16. FIND IF BROWSER JAVASCRIPT ENABLED
    This script simply checks to see whether your viewers browser supports JavaScript or not and prints the answer in a 'text box'.
Does your browser support JavaScript? Answer:

Click here for the script.
 
 17. INSTALLED PLUG-INS
    By clicking the first button below users can see in the textarea a list of all the plug-ins that are installed in their copy of Netscape along with their descriptions. This script uses the navigator.plugins object that is supported only by Netscape/Firefox and so shall not be functional for the users of other browsers like Internet Explorer or Opera.


Click here for the script.
 
 18. INSTALLED MIME TYPES
    By clicking the first button below users can see in the textarea a list of all the MIME types that are installed in their copy of Netscape along with their extensions and string representations. This list has been generated using the JavaScript navigator.plugins object. The mimeTypes property of this object is an array with one entry for each MIME type supported by the plug-in. As this script uses the navigator.plugins object that is supported only by Netscape/Firefox it shall not be functional for the users of other browsers like Internet Explorer or Opera.


Click here for the script.
 
 19. BACK BUTTON/LINK
    With the help of this script users can put up a back link or button on their web pages to enable viewers to go back to the page from where they came. As this button/link uses the history object it would be especially useful on the page that is linked by many pages.

  << Back
Click here for the script.
 
 20. HISTORY LENGTH ALERT
    This single line script can enable users to see the number of pages they have visited using the current browser session in the form of an alert.

Click the link below to run the script:

Get History

Click here for the script.
 
 21. SINGLE URL ACCESS
    This simple 3 line script will only allow access to the page if the visitor is coming from a particular URL. All other visitors will be prevented from accessing the page on which this script is installed.

No example has been included for this script.

Click here for the script.
 
 22. BLOCK SINGLE URL
    This simple 3 line script will prevent anybody coming to the users site from any particular URL that the users may specify. This script could prove helpful if users find any disagreeable web page at an otherwise friendly domain, having a link to theirs. The script works by popping up an alert telling the viewers that they are being blocked after which they shall be taken back to the page they came from.

No example has been included for this script.

Click here for the script.
 
 23. BLOCK SINGLE DOMAIN
    This simple 3 line script will prevent anybody coming to the users site from any particular domain that the users may specify. This script could prove helpful if users find any disagreeable domain having a link to their pages. All the users would have to do is to include this script to all pages they are linked to from the other domain. The script works by popping up an alert telling the viewers that they are being blocked after which they shall be taken back to the page they came from.

No example has been included for this script.

Click here for the script.
 
 24. BLOCK MULTIPLE DOMAINS
    This script will prevent anybody coming to the users site from any domains that the users may specify. Multiple domains can be blocked using this script. This script could prove helpful if users find any disagreeable domains having a link to theirs. Like the scripts above this script also works by popping up an alert. In the alert the domain name from where they approached would be mentioned with the note that all viewers coming from that domain shall be blocked.

No example has been included for this script.

Click here for the script.
 
 25. REDIRECT REDIRECTS
    This simple 3 line script will redirect those who come to the users site from any particular URL that uses a redirect feature. This script could prove helpful if users find any disagreeable domain using such redirects to point to their pages. The script works by first popping up an alert telling the viewers that they are being blocked after which they shall be further redirected to any particular domain that can be specified by the users.

No example has been included for this script.

Click here for the script.
 
 26. PERSONALISED GREETING
    This script will prompt your visitors to enter their names when they first visit your site and will remember the name and display a personalised greeting whenever they return to your web site.

No example has been included for this script.

Click here for the script.
 
 27. PAGE VISIT COUNTER
    With the help of this script you can tell your visitors, with the help of alerts, how many times they have visited a particular page.

No example has been included for this script.

Click here for the script.
 
 28. ACCEPTANCE NOTICE
    With the help of this script you can set up a Terms of Acceptance notice on your web page, in the form of a button, to restrict access to certain pages unless the terms are accepted by clicking the OK button. Only those visitors who accept the terms would be allowed to continue. Those who do not accept would either be sent to another page or have an alert show up with any custom message.

No example has been included for this script.

Click here for the script.
 
 29. AUTO UPDATE COPYRIGHT NOTICE* NEW *
    With the help of this script users can put up a Copyright Notice on their web site that will be automatically updated every year without their wasting time updating the current year themselves on all pages of the site.

No example has been included for this script.

Click here for the script.
 


Index Home Site Map Contact the author Back to top

Copyright © 2000 - 2017 Sandeep Gangadharan. All rights reserved.
Please read the Terms Of Use before using any of the scripts.