Javascript Tutorials

61. TextArea onChange, onKeyPress, onFocus, onBlur, onCut, onCopy, and onPaste using JavaScript

By: aathishankaran : 2007-03-27

Description: In JavaScript, you can handle textarea elements similar to text input fields. You can use various event handlers to detect and respond to user interactions with the textarea. Here are a few examples


62. Checkbox in JavaScript

By: aathishankaran : 2007-03-27

Description: The checkbox object is the form object that is best equipped to denote logical (true or false) data. It acts as a toggle switch that can be turned on or off either by the user or by your JavaScript code. To define a checkbox, use the following HTML syntax:


63. Form in JavaScript

By: aathishankaran : 2007-03-27

Description: One of the principal uses of JavaScript is providing a means to interact with the user on the client side. Most of the time, this interaction with the user happens through an HTML form. As a result, the JavaScript form object is an important object within the JavaScript object model.


64. Handling Events in JavaScript

By: aathishankaran : 2007-03-27

Description: JavaScript programs are typically event-driven. Events are actions that occur on the Web page, usually as a result of something the user does, although not always. For example, a button click is an event, as is giving focus to a form element; resizing the page is an event, as is submitting a form.


65. Custom Password Object in JavaScript

By: aathishankaran : 2007-03-27

Description: In JavaScript, there is no built-in Password object. However, you can create a custom object to handle passwords. Here's an example:


66. Handline radio buttons in JavaScript

By: aathishankaran : 2007-03-27

Description: To handle radio buttons in JavaScript, you can use the checked property of the radio button element to determine if it is selected. Here's an example


67. Handling Select options in JavaScript

By: aathishankaran : 2007-03-27

Description: In HTML, a