I.T. Discussion Community!
-Collapse +Expand
JavaScript
Search JavaScript Group:

Advanced
-Collapse +Expand JavaScript Group Home

WEEKLYLESSON
Week 50 Lesson◄╣

MY
GROUPSETTINGS
-Collapse +Expand JavaScript Store
   ► All GroupsJavaScript Group   Print This    All Groups  

Weekly JavaScript Lesson

Week 50, Posted Monday 12/16/2019

Content changes every Monday @ 1AM!! Check back once per week. Learn! Review! Test Yourself!

Lastest JavaScript Flashcard

Our flashcards are part of our library of tidbits.

Tidbits are FAQs, Definitions, Tips, and Code Snippets from our knowledge base.

JavaScript Event Handler

The JavaScript event handler contains events centered around the Document Object Model (DOM). Common events include onMouseOver and onMouseOut, onFocus and onBlur, onClick and onDblClick, onChange and onSelect, onLoad and onUnload.

For example, onMouseOver and onMouseOut are frequently used with websites to change an image when your mouse moves over it. The onClick event is used to trigger code upon a mouse click.

In the following example, we use a standard image tag set to an image, change it on mouse over, then set it back on mouse out.

<img id="Image1" src="i_search.gif"
 onmouseover="document.images['Image1'].src='i_coat.gif';"
 onmouseout="document.images['Image1'].src='i_search.gif';">
Posted By Mike Prestwood, Post #102046, KB Topic: JavaScript and AJAX

Follow PrestwoodBoards on: 


©1995-2019 PrestwoodBoards  [Security & Privacy]
Professional IT Services: Coding | Websites | Computer Tech