Answer the question
In order to leave comments, you need to log in
How to include an external CSS file in a script?
The situation is as follows:
There is a script on the page, according to the model:
<script>
********** = function () {
*********** = "";
};
</script>
Answer the question
In order to leave comments, you need to log in
In JavaScript, create a variable with the string
A and then add this string using document to the page itself
let font = "<link href='стиль.css' rel='stylesheet'>";
document.append(font);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question