get data from one script tag code example
Example 1: pass parameter to script tag
<script param="1">
document.currentScript.getAttribute('param');
</script>
Example 2: pass parameter to script tag
<script parameter="anything">
<script param="1">
document.currentScript.getAttribute('param');
</script>
<script parameter="anything">