# How do I find out all the methods that are available to an object?

**URL:** https://discourse.processing.org/t/how-do-i-find-out-all-the-methods-that-are-available-to-an-object/20571
**Category:** Beginners
**Created:** [May 7, 2020, 12:18am UTC](https://discourse.processing.org/t/how-do-i-find-out-all-the-methods-that-are-available-to-an-object/20571 "2020-05-07T00:18:53Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Bassam](https://avatars.discourse-cdn.com/v4/letter/b/b38774/32.png) [@Bassam](https://discourse.processing.org/u/Bassam)
#### Post date: [May 7, 2020, 12:18am UTC](https://discourse.processing.org/t/how-do-i-find-out-all-the-methods-that-are-available-to-an-object/20571/1 "2020-05-07T00:18:53Z")

</div>

I want to know all the methods that are part of a button or input box.

The reference doesn’t list them all I think.

---

<div class="post-metadata">

### Author: ![Kevin](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kevin/32/2297_2.png) [@Kevin](https://discourse.processing.org/u/Kevin)
#### Post date: [May 7, 2020, 1:05am UTC](https://discourse.processing.org/t/how-do-i-find-out-all-the-methods-that-are-available-to-an-object/20571/2 "2020-05-07T01:05:49Z")

</div>

You can read through the source code here:

> <https://github.com/processing/p5.js/blob/master/src/dom/dom.js>

Or you can go beyond p5.js and use the underlying native Element object, which is documented here:

> **[Element](https://developer.mozilla.org/en-US/docs/Web/API/Element)**
>
> Element is the most general base class from which all element objects (i.e. objects that represent elements) in a Document inherit. It only has methods and properties common to all kinds of elements. More specific classes inherit from Element.

---

<div class="post-metadata">

### Author: ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)
#### Post date: [May 7, 2020, 1:06am UTC](https://discourse.processing.org/t/how-do-i-find-out-all-the-methods-that-are-available-to-an-object/20571/3 "2020-05-07T01:06:35Z")

</div>

[p5js.org/reference/#/p5.Element](http://p5js.org/reference/#/p5.Element)

> **[: The Button element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button)**
>
> The HTML button element represents a clickable button, used to submit forms or anywhere in a document for accessible, standard button functionality.

  

> <https://github.com/processing/p5.js/blob/1.0.0/src/dom/dom.js#L538-L544>
