# Launch the function loadJSON() with a html button

**URL:** <https://discourse.processing.org/t/launch-the-function-loadjson-with-a-html-button/2802>\
**Category:** Beginners\
**Created:** [August 20, 2018, 8:35pm UTC](https://discourse.processing.org/t/launch-the-function-loadjson-with-a-html-button/2802 "2018-08-20T20:35:21Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mloiz](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/mloiz/32/11462_2.png) [@mloiz](https://discourse.processing.org/u/mloiz)\
**Post date:** [August 21, 2018, 9:27am UTC](https://discourse.processing.org/t/launch-the-function-loadjson-with-a-html-button/2802/2 "2018-08-21T09:27:41Z")

</div>

With an html button, I manage to launch a function with some text (cf [this post](https://discourse.processing.org/t/accessing-html-elements-defined-into-html-file-solved/2701/3?u=mloiz)), but I dont manage to launch a function with loadJSON() 😕

maybe the problem is related to this _callback function_ of [loadJSON()](https://p5js.org/reference/#/p5/loadJSON)❓

---

_[View the full topic](https://discourse.processing.org/t/launch-the-function-loadjson-with-a-html-button/2802)._
