# How to reference a JS file in HTML

**URL:** <https://forum.kirupa.com/t/how-to-reference-a-js-file-in-html/289324>\
**Category:** web dev\
**Created:** [May 28, 2009, 11:25pm UTC](https://forum.kirupa.com/t/how-to-reference-a-js-file-in-html/289324 "2009-05-28T23:25:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![stoney\_kun](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/stoney_kun/32/3395_2.png) [@stoney\_kun](https://forum.kirupa.com/u/stoney_kun)\
**Post date:** [May 28, 2009, 11:25pm UTC](https://forum.kirupa.com/t/how-to-reference-a-js-file-in-html/289324/1 "2009-05-28T23:25:48Z")

</div>

Can you use …/ syntax to reference a parent directory? I am assuming not, because it is not working?

Is there a way to reference the parent dir?

Many thanks!!
