- '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. - Absolute centering of popups [View Source] [Download] [Mail it]
JavaScript enables you to position popups exactly where you want them by looking at the user's screen resolution. This example shows you how. - 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. - Array pop and shift [View Source] [Download] [Mail it]
Array.pop is a function that deletes and returns the last value in an array.
Array.shift does the same with the first value of an array.
This example shows you how to use these functions and make them available to IE. - Basic Cookie Example [View Source] [Download] [Mail it]
This script makes use of a cookie to get and set the number of page visits - Basic Cookie Example II [View Source] [Download] [Mail it]
This is a basic demonstration of how to set, read and delete cookies. - Basic DHTML Ticker [View Source] [Download] [Mail it]
Basic DHTML Ticker I - Basic DHTML Ticker II [View Source] [Download] [Mail it]
Basic DHTML Ticker II - Borderless popups in IE [View Source] [Download] [Mail it]
This example demonstrates how to create draggable borderless popup windows in IE - captureEvents [View Source] [Download] [Mail it]
This is a demonstration which shows you how to catch window events and redirect them. - 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) - Christmas countdown [View Source] [Download] [Mail it]
This script uses the Date object's setDate and setMonth methods to display the time left to a future event. - Clearing pre-defined values in textfields [View Source] [Download] [Mail it]
This example features a function that clears pre-defined values in form textfields without loosing data that has been entered - Closing a window with a key press [View Source] [Download] [Mail it]
This example shows you how to close a popup window with the ESC key - Date Example [View Source] [Download] [Mail it]
This example uses the Date object to determine the day from an entered date. - Date Picker [View Source] [Download] [Mail it]
A simple date picker which supports year ranges from 1752 through 2099; the Date object is used only to determine the current date - Defining new functions for objects [View Source] [Download] [Mail it]
You can define new functions for objects with prototype. This example shows you how. - Digital Clock [View Source] [Download] [Mail it]
Digital Clock - Digital Clock - Simplified version [View Source] [Download] [Mail it]
Digital Clock - Simplified version - 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 - Draggable Objects [View Source] [Download] [Mail it]
This example shows you how to implement several draggable objects with one script. For Internet Explorer and Mozilla compliant browsers - Dynamic Positioning Test Page [View Source] [Download] [Mail it]
Basic demonstration of how to build a DHTML menu for IE and Netscape 6 the fast way. - Dynamic Positioning Test Page II [View Source] [Download] [Mail it]
Basic demonstration of how to build a DHTML menu for IE and Netscape 6 the fast way. This example is a mixture of vertical and horizontal moving menu's - Dynamic Positioning Test Page III [View Source] [Download] [Mail it]
This demonstration is based on the Dynamic Positioning Test Page II file - FileSystemObject [View Source] [Download] [Mail it]
With the Scripting.FileSystemObject you can, amongst others, read file specifications. This demo is for Internet Explorer only. - Fixed positioning example [View Source] [Download] [Mail it]
This example shows you how to fix the position of elements. - Form Parser [View Source] [Download] [Mail it]
This form parser shows the names and values of form elements - 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 - Get the visitor's IP address [View Source] [Download] [Mail it]
Here's how to get your visitor's IP address - HTML List Maker [View Source] [Download] [Mail it]
HTML List Maker generates an HTML list from entered values and copies it to the clipboard. - Image Swapping [View Source] [Download] [Mail it]
Basic image swap example - Java Applets and JavaScript interaction [View Source] [Download] [Mail it]
This is a demonstration of JavaScript and Java applet interaction. - JavaScript Calendar [View Source] [Download] [Mail it]
This demonstration shows you how to generate a calendar including weeknumbers using the Date object's native and additional methods - 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. - Mouse Buttons [View Source] [Download] [Mail it]
This demo shows you which mouse button has been pressed - Mouse Coords [View Source] [Download] [Mail it]
Mouse Coords Displayer demonstrates how to capture mouse-events. - Opera DHTML Examples [View Source] [Download] [Mail it]
Another example of how Opera will render DHTML - Opera DHTML Test page [View Source] [Download] [Mail it]
Opera DHTML testpage. This page has been designed for Opera 5, Netscape 6 and Internet Explorer 4+ browsers. - 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. - Quick form validator [View Source] [Download] [Mail it]
Validate for emty fields in forms the quick way - Regular expressions [View Source] [Download] [Mail it]
This example uses a regular expression to validate if a date has been entered in the correct format. - Regular expressions [View Source] [Download] [Mail it]
With the RegExp object, you can substract substrings which match a pattern from a string. This example shows you how to do this. - Regular Expressions: Match example [View Source] [Download] [Mail it]
This example uses the RegExp-match method to validate a phone number. - Regular Expressions: stripping HTML tags [View Source] [Download] [Mail it]
Here is a way to strip HTML tags from a string with a simple regular expression - 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 - Simple Date Example [View Source] [Download] [Mail it]
The date example returns the current date with only four lines of code - Sliding Jigsaw Puzzle [View Source] [Download] [Mail it]
This JavaScript jigsaw puzzle uses objects to make it compatible with several layouts - Table Toggler [View Source] [Download] [Mail it]
With the document.getElementById(table_id).rows object it is possible to adjust table cell dimensions dynamically - The Option Object [View Source] [Download] [Mail it]
With the Option Object, you can create new selection options on the fly. This example shows you how. - Wat is św teken van de Chinese dierenriem? [View Source] [Download] [Mail it]
This file demonstrates the usage of objects in JavaScript.
|