1 Hour SEO : Domain Registration Bank : Ecommerce Dictionary : GoDefy : Great Web Design Tips
JavaScript 2 : Jumbo Keyword : Marketing Tips Store : Michael Wong Blog : Mike's Marketing Tools
Search Engines 2 : SEO eBook : Text Links Ads : Text Links Guide
 
Web HTML-HTML.com
You are here: HTML > Forms > <SELECT ...>

Attributes for <SELECT ...>
onFocus ="script command(s)"
onBlur ="script command(s)"

Usage Recommendation
Use it, but don't rely on it.

onFocus and onBlur for onFocus work identically as for <INPUT onFocus="...">, so we won't dwell on them long. Let us just reiterate that the most common use for these events, that of changing the status bar, is generally annoying and is a bad idea.

<SELECT
NAME="size"
onFocus = "window.status='What Size Pizza?'" onBlur = "window.status=window.defaultStatus"
>
<OPTION VALUE="s">small
<OPTION VALUE="m">medium
<OPTION VALUE="l">large
</SELECT>

which gives us

pizza size:
phone number:

<OPTION ...> >>>

          

Copyright © 2002-10 Art Dacor USA LLC. All Rights Reserved.
3727 West Magnolia Blvd #489, Burbank, CA, 91505, USA.
www.HTML-HTML.com