Various
  1. 'this' keyword example [View Source] [Download] [Mail it]
    This is a simple demonstration of how you can use the 'this' keyword to get the selected value from an option list.
  2. Access Key / KeyCode Example [View Source] [Download] [Mail it]
    With the ACCESSKEY attribute, you can set the key which can be used to access a form control in combination with the Ctrl-key. This example uses the keycode of the pressed key to determine what to do.
  3. Check and set the client's home page [View Source] [Download] [Mail it]
    Check and set the client's default home page the easy way (IE only)
  4. Defining new functions for objects [View Source] [Download] [Mail it]
    You can define new functions for objects with prototype. This example shows you how.
  5. Document Include [View Source] [Download] [Mail it]
    With ActiveX or Java, HTML files can be included without using frames or layers.
  6. Download Speed Measurer [View Source] [Download] [Mail it]
    This script measures your download speed
  7. Get the actual browserwindow dimensions and screen resolution [View Source] [Download] [Mail it]
    This example shows you how to get the dimensions of your browser window and your current screen resolution
  8. JavaScript Error Handling [View Source] [Download] [Mail it]
    This file demonstrates how to handle JavaScript errors.
  9. Link echo [View Source] [Download] [Mail it]
    This example shows the url's of text links and linked pictures in an alert box.
  10. Parsing a query string [View Source] [Download] [Mail it]
    This example shows you how to retrieve values from the query string through an associative array
  11. Plugin Detection [View Source] [Download] [Mail it]
    This example shows you how to detect plugins with IE, Netscape and Opera browsers.
  12. Privilege Manager Example [View Source] [Download] [Mail it]
    This is an example of how to extend JavaScript functionality in Netscape browsers by requesting privileges. Until version 4 of the Netscape browser, this was done by enabling Data Tainting. This example doesn't use a digitally signed script. Therefore, it will only function when viewed locally.
  13. Resize [View Source] [Download] [Mail it]
    This example shows you how to resize your browser window with JavaScript.
  14. Retrieving Browser JavaScript Capabilities [View Source] [Download] [Mail it]
    This script lists the JavaScript capabilities of your browser.
  15. Retrieving Browser JavaScript Capabilities II [View Source] [Download] [Mail it]
    This script lists the JavaScript capabilities of your browser including the inner functions.
  16. Rounding numbers to two decimals [View Source] [Download] [Mail it]
    IE 5.5 and Netscape 6 introduce the Number.toFixed method to round up numbers to a figure with 1 or more decimals. This example checks if this method is supported and if not, it will prototype it.
  17. Show Params [View Source] [Download] [Mail it]
    This example shows the parameters and values of the page URL's search string
Categories