When you click on a textfield the default text will disappear. And when you click somewhere else and you have written nothing in it, the text will come back.
Check All/Clear All links for dynamic check-boxes (IE4+ & NN4+) JavaScript / DHTML and DOM
In forms when using check boxes for a list of records that is generated dynamically (example: display of messages in your yahoo or hotmail inbox) you might want a simple feature of checking or clearing all the check boxes related to those records before deleting or moving. Use this simple script to do just so.
Remember Text field values JavaScript / Cookies and Sessions
Certain form fields always contain the same values, such as your user's name, email address fields etc. This script will remember the values entered into these fields, and automatically fill out these fields the next time the user returns.
Tip Boxes JavaScript / DHTML and DOM
When writing content for your site you might want to give some tips or explainations for particular words or phrases. For this you might consider using DHTML Tip boxes that appear when a link is rolled over.
Javascript Tip Boxes (IE4+) & (NN4+) JavaScript / Frames and Window
When writing content for your site you might want to give some tips or explainations for particular words or phrases. For this you might consider using DHTML Tip boxes that appear when a link is rolled over.
Form Validation JavaScript / Forms
Any interactive web site has form input - a place where the users input different kind of information. This data is passed to ASP script, or some other technology and if the data contains an error, there will be a delay before the information travels over the Internet to the server, is examined on the server, and then returns to the user along with an error message.
JavaScript Operations on Variables JavaScript / Getting Started
A variable is an amount of memory space reserved to store a piece of information of your code. To use such a memory space, you must first let the browser know that you would need it. For the browser to reserve such a memory space for you, and to use it eventually, you must give it a name. The memory space that is reserved will be used to receive some values from your application and to make such values available when your code needs them. The content of this reserved memory space can change or vary regularly.
Creating Alerts JavaScript / Event Handling
So you've seen those annoying websites that have alert boxes appearing every time you click or open something and wondered how to do it? Well here's your answer.