currentScript
The Document.currentScript property returns the script element whose script is currently being processed and isn't a JavaScript module.
The Document.currentScript property returns the script element whose script is currently being processed and isn't a JavaScript module.