I'm trying to get URL of background image for .av-video-player-bg
inside this iframe:
<iframe src="http://www.gamespot.com/videos/embed/6425430/"></iframe>
I've tried
$("iframe").contents().find('.av-video-player-bg').css('background-image');
But I get this error:
Failed to read the 'contentDocument' property from 'HTMLIFrameElement': Blocked a frame with origin "http://www.gamespot.com" from accessing a cross-origin frame.