I'm unsure if this is feasible and after a brief search, I couldn't find any information. I am curious to know if it's possible to connect a CSS file using JavaScript?
In essence, I would like to invoke a style sheet when I execute a specific JS function.
Is this something that can be achieved?