# How to call method from .js file in .html file when creating node?

**URL:** <https://discourse.nodered.org/t/how-to-call-method-from-js-file-in-html-file-when-creating-node/86272>\
**Category:** Developing Nodes\
**Created:** [8 March 2024 11:26 UTC](https://discourse.nodered.org/t/how-to-call-method-from-js-file-in-html-file-when-creating-node/86272 "2024-03-08T11:26:12Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [8 March 2024 14:18 UTC](https://discourse.nodered.org/t/how-to-call-method-from-js-file-in-html-file-when-creating-node/86272/2 "2024-03-08T14:18:26Z")

</div>

To access server side stuff from the html (client) side, you need to implement a http admin endpoint in the `js` file.

Here is one such example: [Get logged user information in custom node - #3 by knolleary](https://discourse.nodered.org/t/get-logged-user-information-in-custom-node/50796/3)

---

_[View the full topic](https://discourse.nodered.org/t/how-to-call-method-from-js-file-in-html-file-when-creating-node/86272)._
