- '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. - 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. - 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) - Defining new functions for objects [View Source] [Download] [Mail it]
You can define new functions for objects with prototype. This example shows you how. - Document Include [View Source] [Download] [Mail it]
With ActiveX or Java, HTML files can be included without using frames or layers. - Download Speed Measurer [View Source] [Download] [Mail it]
This script measures your download speed - 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 - JavaScript Error Handling [View Source] [Download] [Mail it]
This file demonstrates how to handle JavaScript errors. - Link echo [View Source] [Download] [Mail it]
This example shows the url's of text links and linked pictures in an alert box. - 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 - Plugin Detection [View Source] [Download] [Mail it]
This example shows you how to detect plugins with IE, Netscape and Opera browsers. - 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. - Resize [View Source] [Download] [Mail it]
This example shows you how to resize your browser window with JavaScript. - Retrieving Browser JavaScript Capabilities [View Source] [Download] [Mail it]
This script lists the JavaScript capabilities of your browser. - Retrieving Browser JavaScript Capabilities II [View Source] [Download] [Mail it]
This script lists the JavaScript capabilities of your browser including the inner functions. - 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.
- Show Params [View Source] [Download] [Mail it]
This example shows the parameters and values of the page URL's search string
|