javascript - How to pass parameters to a Script tag? - Stack Overflow
It's better to Use feature in html5 5 data Attributes
<script src="http://path.to/widget.js" data-width="200" data-height="200"> </script>
Inside the script file http://path.to/widget.js you can get the paremeters in that way:
Read full article from javascript - How to pass parameters to a Script tag? - Stack Overflow
No comments:
Post a Comment