Let's say I have first script, that contains function export
function export(*params*){
let callerScriptReference = ....;
.....
}
then I have a second script, where I call this function
export(*params*);
Is it possible to get reference to that second script from within export function body? I'd like to get some "data-*" attribute from that script tag.
Scripts are added to the page in random order.
Hopefully you understand what I'm trying to accomplish :D
Thanks for any suggestions or help.