# Include JS in a html custom module

**URL:** <https://discourse.nodered.org/t/include-js-in-a-html-custom-module/10434>\
**Category:** General\
**Created:** [22 April 2019 18:13 UTC](https://discourse.nodered.org/t/include-js-in-a-html-custom-module/10434 "2019-04-22T18:13:47Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [22 April 2019 19:55 UTC](https://discourse.nodered.org/t/include-js-in-a-html-custom-module/10434/4 "2019-04-22T19:55:18Z")

</div>

For an example see the getscript part of the geofence html file. [https://github.com/hardillb/node-red-node-geofence/blob/master/geofence.html](https://github.com/hardillb/node-red-node-geofence/blob/master/geofence.html)

Steve, this is browser side. You can’t just require as you would in node

---

_[View the full topic](https://discourse.nodered.org/t/include-js-in-a-html-custom-module/10434)._
