Web Hosting Directory | Web Hosting Resources | Webmaster Resources | Domain Tools | Search Engine Marketing | Forums
  Signup
Today: 1,260   Yesterday: 1,015   Max: 1,872   Total: 464,313   Current Users : 12 (Member 0) 
DOMAIN TOOLS

WEBMASTER TOOLS

RELATED ARTICLES

SUBMIT AN ARTICLE

Write for us and get publicity, link to your website, and best of all get paid. Please visit our writers page for details.


LINK TO US

Link to us and earn points for each visitor you bring to us. Please visit our link partner page for details.

 

Attributes for <INPUT ...>
onKeyUp = "script command(s)"
onKeyDown = "script command(s)"

onKeyDown is triggered when the user presses down on a key while the cursor is in the input field. onKeyUp is triggered when the the key goes up again. For example, the following code puts "down!" in the status bar when the key goes down, and "up!" when the key goes up:

this code produces this
<INPUT 
    NAME="realname" 
    onKeyDown="window.status='down!'"
    onKeyUp="window.status='up!'">

onKeyDown and onKeyUp represent the component actions of pressing a key. They cannot be cancelled. In most situations where you might consider using onKeyDown or onKeyUp you will probably find that onKeyPress is more useful. onKeyPress represents the entire keystroke and can cancel the keystroke.



Copyright 1997-2002 Idocs, Inc. Written by Miko Sullivan.

 
 
 
What is your major source of website traffic?
 
 
 
 
 
 

ADVERTISEMENT

 
Cheap Web HostingBudget Web HostingEcommerce Web Hosting
Link to UsLink ExchangeAdvertisePrivacy PolicyTerms Of ServiceAbout UsContact UsSitemap
Copyright © 2006 - 2008 Broadband Media, Inc. All rights reserved.