jslogo JAVASCRIPT PRACTICE PAGE



a basic window.onload funtion: time-of-day-dependent greeting



a basic document.write:


greet = function():


Status Bar Simulator



Get your position:



BUILD A LIST




Change the background color of this page

Change the color of this box!








Do you like Javascript?
owl

Javascript

...is a client-side scripting language that can work in conjunction with HTML ...this is how HTML can use it. Javascript events can be used like attributes in HTML tags. An event is something that happens to that HTML element, such as when it is 'clicked' or when it loses focus.

The events that can be used are:


onclick (executed when a mouse is clicked on an element
ondblclick (executed when a mouse is double-clicked on an element)
onmousemove (executed when the mouse cursor moves on an element)
onmouseout (executed when the mouse cursor moves away from an element)
onmouseover (executed when the mouse cursor moves over an element)
onmousedown (executed when the button of a mouse is pressed down)
onmouseup (executed when the button of a mouse is released)
onkeydown (executed when a key is pressed down)
onkeypress (executed when a key is pressed and released)
onkeyup (executed when a key is released)
onblur (used in form elements and executed when an element loses focus)
onchange (used in form elements and executed when something is changed)
onfocus (used in form elements and executed when an element gains focus)
onreset (used in form elements and executed when a form is reset)
onselect (used in form elements and executed when an element is selected)
onsubmit (used in form elements and executed when a form is submitted)
onunload (used in the body tag and executed when the user navigates away from the page)