Skip to main content
canisoon
document.currentScript
97.35
JS API
`document.currentScript` returns the `<script>` element whose script is currently being processed.
Further reading:
Can I use page for: document.currentScript
Polyfill (IE 6-10 only)