Is there a way to get the value of attribute `data-media` if I'm running the script inside the `iframe`content?

Code looks like this:

```
<div id="myDiv">
    <iframe data-create-resource-url="http://my.domain.url" 
       data-media="Song" 
       frameborder="0" 
       height="41" 
       src="https://different.domain.url" width="366">
     </iframe>
</div>

```

I've tried a lot of ways already like `window.parent.document` or `top.document` or `window.parent` and other available solutions but doesn't seem to work.