# How to run JS file inline in ionic

**URL:** <https://forum.ionicframework.com/t/how-to-run-js-file-inline-in-ionic/158574>\
**Category:** ionic-v3\
**Created:** [March 8, 2019, 9:57am UTC](https://forum.ionicframework.com/t/how-to-run-js-file-inline-in-ionic/158574 "2019-03-08T09:57:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![smiliyee](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@smiliyee](https://forum.ionicframework.com/u/smiliyee)\
**Post date:** [March 8, 2019, 9:57am UTC](https://forum.ionicframework.com/t/how-to-run-js-file-inline-in-ionic/158574/1 "2019-03-08T09:57:43Z")

</div>

Hi i know like the same question has been asked several posts and i gone through all of them still couldn’t get any solution like there is no proper or clear solution… actually i have an accordion which has JS file, the accordion works only if the specific JS file runs, as normal HTML file we can run JS by adding tag … i wana run a JS file inline in HTML and make the accordion work in ionic, please help …

Thank You …
