# CSS SetProperty

**URL:** <https://forum.inductiveautomation.com/t/css-setproperty/95316>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [August 29, 2024, 12:54pm UTC](https://forum.inductiveautomation.com/t/css-setproperty/95316 "2024-08-29T12:54:36Z")\
**Posts on this page:** 1\
**Showing post:** 7

<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:** [August 29, 2024, 1:12pm UTC](https://forum.inductiveautomation.com/t/css-setproperty/95316/7 "2024-08-29T13:12:45Z")

</div>

Yes you can use a markdown, or insert some js file in "injectables"

Check some of me posts, i have done tons of things with it.

Im basicly the guy who invented js in perspective xD  
**BUT even i** am telling you to just **use classes** for this, so yh

> [@Styling Perspective Tree branches?](https://forum.inductiveautomation.com/t/styling-perspective-tree-branches/86074/5):
>
> yeah scripts dont run on load like this, thats why i wrap my scripts in the onload of an img object code = """\<img style='display:none' src='/favicon.ico' onload=\" console.log('hey'); \"\>\</img\>""".replace("\n", "").replace("\t", "") return code Do note that the added a css sheet will not disspear, when closing the view, and if you open a new view a second css sheet will be made... (i think) Css sheets also can get cached, so this might turn out ugly after a while. Its better to ju…

> [@On JavaScript injection in markdown component](https://forum.inductiveautomation.com/t/on-javascript-injection-in-markdown-component/92718/2):
>
> Take a look at some of my posts, i do a bunch of stuff with markdown js. There is a lot more you can do with this. With some string replace, i fixed the space/tab formatting issues, allowing you to code a bit more cleanly. Using an img' onload function you can trigger anything screen wide, With some mutation observers you can trigger stuff on data changes (quite advanced js knowledge required). With window.\_\_client, you can access perspective properties and even write to them ect. (i…

---

_[View the full topic](https://forum.inductiveautomation.com/t/css-setproperty/95316)._
