Answer the question
In order to leave comments, you need to log in
How to get GET parameters of the link from which the script was loaded?
What I mean is, for example, there is some script uploaded to github https;//musite.github.io/script.js
On the site example.com, we download it
<script defer src="https://mysite.github.io/script.js?param1=1¶m2=2"></script>
<!-- в ссылке передаются статические параметры -->
Answer the question
In order to leave comments, you need to log in
Found document.currentScript
https://developer.mozilla.org/currentScript
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question