Javascript is a client scripting language that works with HTML, however, this is not a Javascript guide, we focus on how to use Javascript in HTML.
Javascript events are used like attributes of HTML tags. Events are certain behaviors that occur on HTML elements, such as when they are clicked or when they lose focus.
Sample code [www.CuoXIn.com]