So: I put a js script inside a div, for example. How can I make this script identify the DIV in which it is contained without selectors like ID or Class?
I see some embedding scripts that insert things (images, videos and etc) into the element they are placed in, without having to use selectors. How is this done?
OBS: Pure Javascript. I'm learning pure js.
Thank you and good afternoon to all.