My question may seem a already asked and answered to you, but when I searched for this question on SO I came across only the questions about getting attribute of the <iframe>
element.
But my question is that "How to get an element's attribute value in the iframe?".
For example if my iframe has an id iframe1
and it's src is https://anonfiles.com/z7E9W640ud/anime-girls-night-sky-scenery-clouds-stars-4K-64_jpg so how can I get the href
value of an anchor link with an id download-url
in that page?
The main thing, I want to put that value into an another element(most probably a video or an anchor link) with an id linkHere
.
I prefer using Vanilla JS or Jquery for this.
Also If I made any mistakes, feel free to correct me.
THANKS IN ADVANCE :)