CSS (1) - Merged
CSS (1) - Merged
ON
“Event Handling”
SUBMITTED BY
Sanjivani Pratisthan’s
S. P. I. T. POLYTECHNIC, KURUND
2023 – 2024
Sanjivani Pratisthan’s
S. P. I. T. POLYTECHNIC, KURUND
CERTIFICATE
This is to certify that a micro project work entitled
“Event Handling”
is bonafide work carried out by following students
Sr.No. Title
01 JAVASCRIPT EVENT
04. ONCLICK
05. ONMOUSEOVER & ONMOUSEOUT
06. ONMOUSEDOWN & ONMOUSEUP
07. ONMOUSEMOVE
08. ONLOAD
09. ONFOCUS & ONSUBMIT
JavaScript Events
The change in the state of an object is known as an
Event.
In html, there are various events which represents
that some activity is performed by the user or by
the browser. When javascript code is included in
HTML.
JS react over these events and allow the execution.
This process of reacting over the events is called
Event Handling. Thus, js handles the HTML events
via Event Handlers.
Introduction to Event Handling
• Event Handling is a software routine that processes
actions, such as keystrokes and mouse movements.
• It is the receipt of an event at some event handler from
an event producer and subsequent processes.
Functions of Event Handling
• Event Handling identifies where an event should be
forwarded.
• It makes the forward event.
• It receives the forwarded event.
• It takes some kind of appropriate action in response,
such as writing to a log, sending an error or recovery
routine or sending a message.
• The event handler may ultimately forward the event
to an event consumer.
Event Handler Description
OnClick When mouse click on an element
<html>
<body>
<script type="text/javascript">
alert("You are a Valid User !!!");
</script>
</body>
</html>
OUTPUT:-