About us Privacy Disclaimer Contact us
FAQ Help Advertising Feedback
Home Sitemap Search Donate us

  Home > Computer & I'net > Events...

   Browse by title articles:
   What is hot:

JavaScript Basics

Variables

Events

More Basics

Functions

Arrays

Web Site Management: Guestbooks
Bad Web Design: Graphics Problemsš
The Right Way to Use Text Colors
Does The Color of Your Site Matter?
Prev articles1 2 345Next articles



Events


Computer & I'net articlesEvents

by David Stanley    



Events are the reactions to a visitors actions. The most commonly used are the onMouseOver and onMouseOut events. These are used for creating image changes when the visitor points the mouse over them. Here are all the other EVENTS and what they react to :

onAbort  Visitor aborts current page loading.
onBlur  Object visitor just came from.
onChange A change in the current application.
onClick  Visitor left mouse click.
onError  Script encountered an error.
onFocus  Visitor creates object as active.
onLoad  As the page loads up.
onMouseOver Mouse cursor over an object.
onMouseOut Mouse cursor off an object.
onSelect Visitor content selection.
onSubmit Visitor SUBMIT on a form.
onUnload Visitor clicked off window.

A bit more detail

onAbort
Activates a specified command if the visitor cancels the current page loading.

onBlur
When the visitor clicks onto another window or area causing the current window to become the "less important" one or the background one. This is the opposite of onFocus.

onChange
When the visitor clicks on an area, changing the current event. The best example of this is a drop down menu. The visitor clicks on a title, and gets transfered over the the corresponding page or site. The onChange is when the choice was made.

onClick
When the visitor clicks on an area. Works similar to A HREF. Can be used to create a multiple effect at the same time during one mouse click.

onError
I don't know much about this one, but I believe it reacts to whenever a script error occurs.

onFocus
When the visitor clicks onto a window or area causing it to be the current window or "more important" one. Opposite of onBlur.

onLoad
When the page or other part of the site has been activated to load for viewing. This is the opposite of onUnload. Some people use this to post a "Welcome" message as their page loads in.

onMouseOver
This activates a specified command when the mouse cursor passes over a specified area on the screen. Usually used for swapping images.

onMouseOut
This activates a specified command when the mouse cursor leaves the specified area on the screen. Also usually used for swapping images.

onSelect
This activates a specified command when the visitor chooses a particular option.

onSubmit
When the site contains a FORM type area, this will activate a specified command when the visitor clicks on the SUBMIT button.

onUnload
When the visitor decides to leave the page by clicking the X in the upper right corner or types in a new address in the browser bar, this command will be activated. Some sites have a popup message saying "Thanks". This is the opposite of onLoad.




-----------------
Article by David Stanley. Visit his site http://www.htmlite.com. Reprinted with permission.




Articles

Auto & Trucks

Business

Computer & I'net

  ·General

  ·Apache

  ·CSS

  ·Database

  ·Hardware

  ·HTML

Javascript&DHTML

  ·Linux

  ·MySQL

  ·Operating System

  ·Perl / CGI

  ·PHP

  ·Programming

  ·Publishing

  ·Search Engines

  ·Software Problems

  ·SSI

  ·Tips & Tricks

  ·Utilities

  ·Web Design

Family

Food & Drink

Gardening

Health

Other

Pets

Psychology

Spiritual

Travel

Women

 Calculators

Rent vs Buy




  Disclaimer | Privacy | Terms of useCopyright © 2004 Nice2know.com