Example of onLoad Event Object, JavaScript Tutorial, Global Guide Line Technology.
Forum | Blog |

JavaScript Tutorial Home Page JavaScript Examples >> onLoad Event Object Example

Example of onLoad Event Object

An Event Handler executes a segment of a code based on certain events occurring within the application, such as onLoad Event Handler. An onLoad event occurs when a window or image finishes loading. For windows, this Event Handler is specified in the <BODY> attribute of the window. In an image, the Event Handler will execute handler text when the image is loaded. For example:

<IMG SRC="images/object.gif" NAME="jsobjects"
onLoad="alert('You loaded myimage')">

[ About ] [ Contact ] [ Home ]
[ Links ] [ Site Map ] [ Services ] [ Privacy ]

Copyright 2005 -  2021 www.globalguideline.com All rights reserved. (Best viewed in IE 6.0+ or Firefox 2.0+ at 1024 * 768 or higher) 491 visitors are online now