SlideShare a Scribd company logo
2
Most read
4
Most read
5
Most read
Javascript event handler
JAVASCRIPT EVENTS
• Javascript-enabled Web pages are typically event
  driven. Events are actions that occur on the Web page.
  Generally speaking they occur when.
• Your browser does something such as loading or
  unloading a page.
• You do something like clicking a button, moving your
  mouse over a link, or moving your cursor into or out a
  form element.
• If these events which cause JavaScript code to spring
  into action. Each JavaScript event has a corresponding
  event handler that is charged with the responsibility of
  automatically responding to it when it occurs.
     Reference: http://www.wvu.edu˜ support/training/classmat/js/
EVENT HANDLERS
• Event handlers execute JavaScript code to respond to
  events whenever they occur.
• They what makes JavaScript so useful in creating
  interactive Web sites.

  Understanding "event handlers" in JavaScript
• So, what are event handlers? Very powerful and
  useful! They are JavaScript code that are not added
  inside the <script> tags, but rather, inside the html
  tags, that execute JavaScript when something
  happens, such as pressing a button, moving your
  mouse over a link, submitting a form etc. The basic
  syntax of these event handlers is:
                     Reference: Copyright © 1997-2012 JavaScript Kit.
Event Handlers can be divided into two parts:

• interactive Event Handlers and
• non-interactive Event Handlers
• An interactive Event Handler is the one that
  depends on the user interactivity with the form
  or the document. For example, onMouseOver is
  an interactive Event Handler because it depends
  on the users action with the mouse.
• On the other hand non-interactive Event Handler
  would be onLoad, because this Event Handler
  would automatically execute JavaScript code
  without the user's interactivity.
EVENT HANDLERS
Event Handler                         Event that it handles
onBlur          User has left the focus of the object. For example, they clicked
                away from a text field that was previously selected.

onChange        User has changed the object, then attempts to leave that field
                (i.e. clicks elsewhere).

onClick         User clicked on the object.
onDblClick      User clicked twice on the object.
onFocus         User brought the focus to the object (i.e. clicked on it/tabbed to
                it)
onKeydown       A key was pressed over an element.
onKeyup         A key was released over an element.
onKeypress      A key was pressed over an element then released.
onLoad          The object has loaded.                    Reference: quackit.com
Event Handler                 Event that it handles
onMousedown         The cursor moved over the object and
                    mouse/pointing device was pressed down.
onMouseup           The mouse/pointing device was released after being
                    pressed down.
onMouseover         The cursor moved over the object (i.e. user hovers the
                    mouse over the object).
onMousemove         The cursor moved while hovering over an object.

onMouseout          The cursor moved off the object
onReset             User has reset a form.
onSelect            User selected some or all of the contents of the
                    object. For example, the user selected some text
                    within a text field.
onSubmit            User submitted a form.
onUnload            User left the window (i.e. user closes the browser
                    window).
<HTML><HEAD>                                        Browser ‘s Output
<TITLE>Example of onBlur Event Handler</TITLE>
<SCRIPT>
function validateAnswer(answer) {
if (answer == "Brendan Eich")
{alert("Your answer is correct");}
else
{alert("Your answer is wrong") }
}
</SCRIPT></HEAD><BODY>
<H3> Example of onBlur Event Handler</H3>
Who created the JavaScript?:<BR>
<FORM>                              In this example, 'data' is a text field. When a
    <INPUT TYPE="text"              user attempts to leave the field,
     onBlur="validate(this.value)"> the onBlur Event Handler calls the valid()
</FORM>                             function to confirm that 'data' has a legal
</BODY>                             value. Note that the keyword this is used to
                                    refer to the current object.
</HTML>
<HTML><HEAD>                                     Browser’s Output
<TITLE>Example of onChange Event
Handler</TITLE>
<SCRIPT>
function valid(input)
{ alert("You have changed the value from Jesus
    to " + input);}
</SCRIPT>
</HEAD>
<BODY>
<H3>Example of onChange Event
Handler</H3>
Try changing the value from Jesus to something
    else:<BR>                                    In this example, 'data' is a text field.
<FORM>                                           When a user attempts to leave the
                                                 field after a change of the original
<INPUT TYPE="text“
                                                 value, the onChange Event Handler
VALUE=“Jesus" onChange="valid(this.value)“/>     calls the valid() function which alerts
    </FORM></BODY></HTML>                        the user about value that has been
                                                 inputted.
<HTML>                                 Browser’s Output
<HEAD><TITLE>Example of on Focus
   Event Handler</TITLE>
</HEAD>
<BODY>
<H3>Example of onFocus Event
   Handler</H3>
Click your mouse in the textbox:<BR>
<FORM>
<INPUT TYPE="text"
                                        In the above
onFocus='alert("You focused in the
   textbox!!")'>
                                        example, when you
                                        put your mouse on
</FORM>
                                        the text box,
</BODY>
                                        an alert() message
</HTML>
                                        displays a message.
<IMG SRC="images/object.gif"
  NAME="jsobjects"
   onLoad="alert('You loaded my image')">
  Browser’s Output
                         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.
<html><head><script>                                  Browser’s Output
function bigImg(x)
{
x.style.height="64px";
x.style.width="64px";
}
function normalImg(x)
{
x.style.height="32px";
x.style.width="32px";
}
</script></head><body>

<img onmouseover="bigImg(this)"
   onmouseout="normalImg(this)" border="0"
   src="grasshopper.gif" alt=“Grasshopper"
   width="32" height="32">

<p>The function bigImg() is triggered when the user
   moves the mouse pointer over the image.</p>
<p>The function normalImg() is triggered when the
   mouse pointer is moved out of the image.</p>
</body></html>
Browser’s Output
•   <script>
•   function myFunction()
•   {
•   alert("You have selected
    some text!");
•   }
•   </script>
•   </head>
•   <body>

• Some text: <input
  type="text" value="Hello
  world!"                      On the above example, when the
                               value of the textbox was selected
  onselect="myFunction()">     an alert box displays a message
MATCHING TYPE: Match Column A to Column B. Write
          your answer on the space provided.
                      COLUMN A                                    COLUMN B
                  Event that it handles                          Event Handler

_________1. The cursor moved over the object and            a.   onChange
mouse/pointing device was pressed down.                     b.   onClick
_________2. The cursor moved over the object.               c.   onDblClick
_________3. User submitted a form.                          d.   onLoad
_________4. User clicked on the object.                     e.   onMousedown
_________5. The object has loaded.                          f.   onMouseover
_________6. User has changed the object, then attempts      g.   onMouseout
to leave that field (i.e. clicks elsewhere).                h.   onReset
_________7. The cursor moved off the object.                i.   onSelect
_________8. User has reset a form.                          j.   onSubmit
_________9. User clicked twice on the object.
_________10. User selected some or all of the contents of
the object.

More Related Content

PPT
Structure of a C program
David Livingston J
 
PPTX
Event handling
swapnac12
 
PPTX
Deployment Models of Cloud Computing.pptx
Jaya Silwal
 
PPTX
String in c programming
Devan Thakur
 
PPTX
Introduction to python
Ayshwarya Baburam
 
PDF
JavaScript - Chapter 6 - Basic Functions
WebStackAcademy
 
DOCX
Capsule proposal in Waste Segregation: It's Benefits to the Enviroment
Kate Sevilla
 
Structure of a C program
David Livingston J
 
Event handling
swapnac12
 
Deployment Models of Cloud Computing.pptx
Jaya Silwal
 
String in c programming
Devan Thakur
 
Introduction to python
Ayshwarya Baburam
 
JavaScript - Chapter 6 - Basic Functions
WebStackAcademy
 
Capsule proposal in Waste Segregation: It's Benefits to the Enviroment
Kate Sevilla
 

What's hot (20)

PPT
JavaScript: Events Handling
Yuriy Bezgachnyuk
 
PDF
JavaScript - Chapter 11 - Events
WebStackAcademy
 
PPTX
Event In JavaScript
ShahDhruv21
 
PPTX
Java script
reddivarihareesh
 
PDF
JavaScript - Chapter 8 - Objects
WebStackAcademy
 
PPTX
Java script
Shyam Khant
 
PPTX
Javascript operators
Mohit Rana
 
PPTX
html-table
Dhirendra Chauhan
 
PPTX
PHP FUNCTIONS
Zeeshan Ahmed
 
PPT
Javascript
Manav Prasad
 
PDF
Javascript basics
shreesenthil
 
PPT
Jsp ppt
Vikas Jagtap
 
PDF
Html frames
eShikshak
 
PPTX
Javascript conditional statements
nobel mujuji
 
PPTX
Type casting in java
Farooq Baloch
 
PDF
Asp.net state management
priya Nithya
 
PPTX
Javascript functions
Alaref Abushaala
 
PPTX
Hibernate ppt
Aneega
 
JavaScript: Events Handling
Yuriy Bezgachnyuk
 
JavaScript - Chapter 11 - Events
WebStackAcademy
 
Event In JavaScript
ShahDhruv21
 
Java script
reddivarihareesh
 
JavaScript - Chapter 8 - Objects
WebStackAcademy
 
Java script
Shyam Khant
 
Javascript operators
Mohit Rana
 
html-table
Dhirendra Chauhan
 
PHP FUNCTIONS
Zeeshan Ahmed
 
Javascript
Manav Prasad
 
Javascript basics
shreesenthil
 
Jsp ppt
Vikas Jagtap
 
Html frames
eShikshak
 
Javascript conditional statements
nobel mujuji
 
Type casting in java
Farooq Baloch
 
Asp.net state management
priya Nithya
 
Javascript functions
Alaref Abushaala
 
Hibernate ppt
Aneega
 
Ad

Similar to Javascript event handler (20)

PPTX
Unit3.pptx
AnamikaRai59
 
PDF
JavaScript
tutorialsruby
 
PDF
JavaScript
tutorialsruby
 
PPTX
DHTML - Events & Buttons
Deep Patel
 
PDF
Java script browser objects 1
H K
 
PPTX
Presentation
priyankazope
 
PPTX
Lab #2: Introduction to Javascript
Walid Ashraf
 
PPTX
Javascript 2
pavishkumarsingh
 
PPTX
JavaScript_Events.pptx
Yagna15
 
PPTX
Web programming
Subha Selvam
 
PDF
Lec 5
maamir farooq
 
PPTX
Android 3
Robert Cooper
 
PPTX
Upstate CSCI 450 WebDev Chapter 9
DanWooster1
 
KEY
Reacting to a Virtual World
Jaime Christine Perez
 
PPTX
unit4 wp.pptxjvlbpuvghuigv8ytg2ugvugvuygv
utsavsd11
 
PPTX
5 .java script events
chauhankapil
 
PPTX
types of events in JS
chauhankapil
 
PDF
Javascript #8 : événements
Jean Michel
 
PPTX
Unit5_Web_Updvvgxsvjbffcvvgbjifszated.pptx
1si23bt001
 
PPTX
JS basics
Mohd Saeed
 
Unit3.pptx
AnamikaRai59
 
JavaScript
tutorialsruby
 
JavaScript
tutorialsruby
 
DHTML - Events & Buttons
Deep Patel
 
Java script browser objects 1
H K
 
Presentation
priyankazope
 
Lab #2: Introduction to Javascript
Walid Ashraf
 
Javascript 2
pavishkumarsingh
 
JavaScript_Events.pptx
Yagna15
 
Web programming
Subha Selvam
 
Android 3
Robert Cooper
 
Upstate CSCI 450 WebDev Chapter 9
DanWooster1
 
Reacting to a Virtual World
Jaime Christine Perez
 
unit4 wp.pptxjvlbpuvghuigv8ytg2ugvugvuygv
utsavsd11
 
5 .java script events
chauhankapil
 
types of events in JS
chauhankapil
 
Javascript #8 : événements
Jean Michel
 
Unit5_Web_Updvvgxsvjbffcvvgbjifszated.pptx
1si23bt001
 
JS basics
Mohd Saeed
 
Ad

More from Jesus Obenita Jr. (20)

PPTX
Organization and management 3 a Evolution of Management Theory
Jesus Obenita Jr.
 
PPTX
Organization and management 2 Management Function
Jesus Obenita Jr.
 
PPTX
Organization and management 1
Jesus Obenita Jr.
 
PPTX
Designing web page marquee and img tag
Jesus Obenita Jr.
 
PPTX
Ms excel 2013 formatting worksheets
Jesus Obenita Jr.
 
PPTX
Ms excel 2013 data management
Jesus Obenita Jr.
 
PPTX
Microsoft Excel introduction
Jesus Obenita Jr.
 
PPTX
Word 2013 working with pictures
Jesus Obenita Jr.
 
PPTX
Word 2013 Formatting Page
Jesus Obenita Jr.
 
PPTX
Word 2013 8
Jesus Obenita Jr.
 
PPTX
Ms word 2013 7
Jesus Obenita Jr.
 
PPTX
Ms word 2013 6
Jesus Obenita Jr.
 
PPTX
Ms word 2013 4
Jesus Obenita Jr.
 
PPTX
Ms word 2013 2
Jesus Obenita Jr.
 
PPTX
Ms word 2013
Jesus Obenita Jr.
 
PPTX
Parts of the ms word 2013 screen and
Jesus Obenita Jr.
 
PPTX
Word processor
Jesus Obenita Jr.
 
PPT
Session 2 test construction.mt's
Jesus Obenita Jr.
 
PPTX
Cooking ingredients
Jesus Obenita Jr.
 
PPTX
Color theory
Jesus Obenita Jr.
 
Organization and management 3 a Evolution of Management Theory
Jesus Obenita Jr.
 
Organization and management 2 Management Function
Jesus Obenita Jr.
 
Organization and management 1
Jesus Obenita Jr.
 
Designing web page marquee and img tag
Jesus Obenita Jr.
 
Ms excel 2013 formatting worksheets
Jesus Obenita Jr.
 
Ms excel 2013 data management
Jesus Obenita Jr.
 
Microsoft Excel introduction
Jesus Obenita Jr.
 
Word 2013 working with pictures
Jesus Obenita Jr.
 
Word 2013 Formatting Page
Jesus Obenita Jr.
 
Word 2013 8
Jesus Obenita Jr.
 
Ms word 2013 7
Jesus Obenita Jr.
 
Ms word 2013 6
Jesus Obenita Jr.
 
Ms word 2013 4
Jesus Obenita Jr.
 
Ms word 2013 2
Jesus Obenita Jr.
 
Ms word 2013
Jesus Obenita Jr.
 
Parts of the ms word 2013 screen and
Jesus Obenita Jr.
 
Word processor
Jesus Obenita Jr.
 
Session 2 test construction.mt's
Jesus Obenita Jr.
 
Cooking ingredients
Jesus Obenita Jr.
 
Color theory
Jesus Obenita Jr.
 

Recently uploaded (20)

PDF
High Ground Student Revision Booklet Preview
jpinnuck
 
PPTX
An introduction to Dialogue writing.pptx
drsiddhantnagine
 
PPTX
Odoo 18 Sales_ Managing Quotation Validity
Celine George
 
PPTX
HISTORY COLLECTION FOR PSYCHIATRIC PATIENTS.pptx
PoojaSen20
 
PDF
Review of Related Literature & Studies.pdf
Thelma Villaflores
 
PPTX
Understanding operators in c language.pptx
auteharshil95
 
PPTX
Care of patients with elImination deviation.pptx
AneetaSharma15
 
PPTX
Presentation on Janskhiya sthirata kosh.
Ms Usha Vadhel
 
PDF
Electricity-Magnetic-and-Heating-Effects 4th Chapter/8th-science-curiosity.pd...
Sandeep Swamy
 
PPTX
PREVENTIVE PEDIATRIC. pptx
AneetaSharma15
 
PPTX
TEF & EA Bsc Nursing 5th sem.....BBBpptx
AneetaSharma15
 
PDF
PG-BPSDMP 2 TAHUN 2025PG-BPSDMP 2 TAHUN 2025.pdf
AshifaRamadhani
 
PDF
Arihant Class 10 All in One Maths full pdf
sajal kumar
 
PDF
1.Natural-Resources-and-Their-Use.ppt pdf /8th class social science Exploring...
Sandeep Swamy
 
PPTX
Tips Management in Odoo 18 POS - Odoo Slides
Celine George
 
DOCX
SAROCES Action-Plan FOR ARAL PROGRAM IN DEPED
Levenmartlacuna1
 
PPTX
Skill Development Program For Physiotherapy Students by SRY.pptx
Prof.Dr.Y.SHANTHOSHRAJA MPT Orthopedic., MSc Microbiology
 
DOCX
Action Plan_ARAL PROGRAM_ STAND ALONE SHS.docx
Levenmartlacuna1
 
PPTX
Nursing Management of Patients with Disorders of Ear, Nose, and Throat (ENT) ...
RAKESH SAJJAN
 
PPTX
How to Manage Leads in Odoo 18 CRM - Odoo Slides
Celine George
 
High Ground Student Revision Booklet Preview
jpinnuck
 
An introduction to Dialogue writing.pptx
drsiddhantnagine
 
Odoo 18 Sales_ Managing Quotation Validity
Celine George
 
HISTORY COLLECTION FOR PSYCHIATRIC PATIENTS.pptx
PoojaSen20
 
Review of Related Literature & Studies.pdf
Thelma Villaflores
 
Understanding operators in c language.pptx
auteharshil95
 
Care of patients with elImination deviation.pptx
AneetaSharma15
 
Presentation on Janskhiya sthirata kosh.
Ms Usha Vadhel
 
Electricity-Magnetic-and-Heating-Effects 4th Chapter/8th-science-curiosity.pd...
Sandeep Swamy
 
PREVENTIVE PEDIATRIC. pptx
AneetaSharma15
 
TEF & EA Bsc Nursing 5th sem.....BBBpptx
AneetaSharma15
 
PG-BPSDMP 2 TAHUN 2025PG-BPSDMP 2 TAHUN 2025.pdf
AshifaRamadhani
 
Arihant Class 10 All in One Maths full pdf
sajal kumar
 
1.Natural-Resources-and-Their-Use.ppt pdf /8th class social science Exploring...
Sandeep Swamy
 
Tips Management in Odoo 18 POS - Odoo Slides
Celine George
 
SAROCES Action-Plan FOR ARAL PROGRAM IN DEPED
Levenmartlacuna1
 
Skill Development Program For Physiotherapy Students by SRY.pptx
Prof.Dr.Y.SHANTHOSHRAJA MPT Orthopedic., MSc Microbiology
 
Action Plan_ARAL PROGRAM_ STAND ALONE SHS.docx
Levenmartlacuna1
 
Nursing Management of Patients with Disorders of Ear, Nose, and Throat (ENT) ...
RAKESH SAJJAN
 
How to Manage Leads in Odoo 18 CRM - Odoo Slides
Celine George
 

Javascript event handler

  • 2. JAVASCRIPT EVENTS • Javascript-enabled Web pages are typically event driven. Events are actions that occur on the Web page. Generally speaking they occur when. • Your browser does something such as loading or unloading a page. • You do something like clicking a button, moving your mouse over a link, or moving your cursor into or out a form element. • If these events which cause JavaScript code to spring into action. Each JavaScript event has a corresponding event handler that is charged with the responsibility of automatically responding to it when it occurs. Reference: http://www.wvu.edu˜ support/training/classmat/js/
  • 3. EVENT HANDLERS • Event handlers execute JavaScript code to respond to events whenever they occur. • They what makes JavaScript so useful in creating interactive Web sites. Understanding "event handlers" in JavaScript • So, what are event handlers? Very powerful and useful! They are JavaScript code that are not added inside the <script> tags, but rather, inside the html tags, that execute JavaScript when something happens, such as pressing a button, moving your mouse over a link, submitting a form etc. The basic syntax of these event handlers is: Reference: Copyright © 1997-2012 JavaScript Kit.
  • 4. Event Handlers can be divided into two parts: • interactive Event Handlers and • non-interactive Event Handlers • An interactive Event Handler is the one that depends on the user interactivity with the form or the document. For example, onMouseOver is an interactive Event Handler because it depends on the users action with the mouse. • On the other hand non-interactive Event Handler would be onLoad, because this Event Handler would automatically execute JavaScript code without the user's interactivity.
  • 5. EVENT HANDLERS Event Handler Event that it handles onBlur User has left the focus of the object. For example, they clicked away from a text field that was previously selected. onChange User has changed the object, then attempts to leave that field (i.e. clicks elsewhere). onClick User clicked on the object. onDblClick User clicked twice on the object. onFocus User brought the focus to the object (i.e. clicked on it/tabbed to it) onKeydown A key was pressed over an element. onKeyup A key was released over an element. onKeypress A key was pressed over an element then released. onLoad The object has loaded. Reference: quackit.com
  • 6. Event Handler Event that it handles onMousedown The cursor moved over the object and mouse/pointing device was pressed down. onMouseup The mouse/pointing device was released after being pressed down. onMouseover The cursor moved over the object (i.e. user hovers the mouse over the object). onMousemove The cursor moved while hovering over an object. onMouseout The cursor moved off the object onReset User has reset a form. onSelect User selected some or all of the contents of the object. For example, the user selected some text within a text field. onSubmit User submitted a form. onUnload User left the window (i.e. user closes the browser window).
  • 7. <HTML><HEAD> Browser ‘s Output <TITLE>Example of onBlur Event Handler</TITLE> <SCRIPT> function validateAnswer(answer) { if (answer == "Brendan Eich") {alert("Your answer is correct");} else {alert("Your answer is wrong") } } </SCRIPT></HEAD><BODY> <H3> Example of onBlur Event Handler</H3> Who created the JavaScript?:<BR> <FORM> In this example, 'data' is a text field. When a <INPUT TYPE="text" user attempts to leave the field, onBlur="validate(this.value)"> the onBlur Event Handler calls the valid() </FORM> function to confirm that 'data' has a legal </BODY> value. Note that the keyword this is used to refer to the current object. </HTML>
  • 8. <HTML><HEAD> Browser’s Output <TITLE>Example of onChange Event Handler</TITLE> <SCRIPT> function valid(input) { alert("You have changed the value from Jesus to " + input);} </SCRIPT> </HEAD> <BODY> <H3>Example of onChange Event Handler</H3> Try changing the value from Jesus to something else:<BR> In this example, 'data' is a text field. <FORM> When a user attempts to leave the field after a change of the original <INPUT TYPE="text“ value, the onChange Event Handler VALUE=“Jesus" onChange="valid(this.value)“/> calls the valid() function which alerts </FORM></BODY></HTML> the user about value that has been inputted.
  • 9. <HTML> Browser’s Output <HEAD><TITLE>Example of on Focus Event Handler</TITLE> </HEAD> <BODY> <H3>Example of onFocus Event Handler</H3> Click your mouse in the textbox:<BR> <FORM> <INPUT TYPE="text" In the above onFocus='alert("You focused in the textbox!!")'> example, when you put your mouse on </FORM> the text box, </BODY> an alert() message </HTML> displays a message.
  • 10. <IMG SRC="images/object.gif" NAME="jsobjects" onLoad="alert('You loaded my image')"> Browser’s Output 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.
  • 11. <html><head><script> Browser’s Output function bigImg(x) { x.style.height="64px"; x.style.width="64px"; } function normalImg(x) { x.style.height="32px"; x.style.width="32px"; } </script></head><body> <img onmouseover="bigImg(this)" onmouseout="normalImg(this)" border="0" src="grasshopper.gif" alt=“Grasshopper" width="32" height="32"> <p>The function bigImg() is triggered when the user moves the mouse pointer over the image.</p> <p>The function normalImg() is triggered when the mouse pointer is moved out of the image.</p> </body></html>
  • 12. Browser’s Output • <script> • function myFunction() • { • alert("You have selected some text!"); • } • </script> • </head> • <body> • Some text: <input type="text" value="Hello world!" On the above example, when the value of the textbox was selected onselect="myFunction()"> an alert box displays a message
  • 13. MATCHING TYPE: Match Column A to Column B. Write your answer on the space provided. COLUMN A COLUMN B Event that it handles Event Handler _________1. The cursor moved over the object and a. onChange mouse/pointing device was pressed down. b. onClick _________2. The cursor moved over the object. c. onDblClick _________3. User submitted a form. d. onLoad _________4. User clicked on the object. e. onMousedown _________5. The object has loaded. f. onMouseover _________6. User has changed the object, then attempts g. onMouseout to leave that field (i.e. clicks elsewhere). h. onReset _________7. The cursor moved off the object. i. onSelect _________8. User has reset a form. j. onSubmit _________9. User clicked twice on the object. _________10. User selected some or all of the contents of the object.