Can someone help me figure out how to retrieve the URL of the background image for .av-video-player-bg
within this specific iframe?
<iframe src="http://www.gamespot.com/videos/embed/6425430/"></iframe>
I attempted the following:
$("iframe").contents().find('.av-video-player-bg').css('background-image');
Upon doing so, I encountered the following error message:
The 'contentDocument' property cannot be read from 'HTMLIFrameElement'. A frame with origin "" was blocked from accessing a cross-origin frame.