# On JavaScript injection in markdown component

**URL:** <https://forum.inductiveautomation.com/t/on-javascript-injection-in-markdown-component/92718>\
**Category:** Ignition\
**Tags:** perspective, scripting\
**Created:** [July 2, 2024, 9:15pm UTC](https://forum.inductiveautomation.com/t/on-javascript-injection-in-markdown-component/92718 "2024-07-02T21:15:26Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [March 14, 2025, 7:34am UTC](https://forum.inductiveautomation.com/t/on-javascript-injection-in-markdown-component/92718/4 "2025-03-14T07:34:50Z")

</div>

`<scripts>` dont really get triggered like that no. Thats why i always have to wrap "scripts" into the onload of an img

You should be able to add it through the injectables though.

> [@\[feature-748\]Perspective Favicon](https://forum.inductiveautomation.com/t/feature-748-perspective-favicon/24642/29):
>
> Soo i got something for you mage Create these files (and injectables folder) (depending on install folder ofc) "C:\Program Files\Inductive Automation\Ignition\data\modules\com.inductiveautomation.perspective\injectables\head\_bottom.txt" "C:\Program Files\Inductive Automation\Ignition\webserver\webapps\main\newFavicon.ico" In the head\_bottom.txt put this: \<script\> const oldLinks = document.querySelectorAll('link[rel\*="icon"]'); oldLinks.forEach(e =\> {e.href = '/newFavicon.ico';}); \</script\>…

---

_[View the full topic](https://forum.inductiveautomation.com/t/on-javascript-injection-in-markdown-component/92718)._
