Hello,
I’m trying to get data from a Iframe I have. The iFrame is a YouTube video and I am trying to extract some dat from the source. I’m basing my code off a Greasemonkey script for download a YouTube video. The script is [url]http://www.joshkinberg.com/blog/files/youtube_to_me.user.js
[CODE]
<script type=”text/javascript”>
function something()
{
var t_id = document.frames(“video_frame”).document.playerDiv.src.match(/t=([^(&|$)]*)/)[1];
alert(t_id);
}
</script>
<INPUT TYPE=”button” value=”Submit” onclick=”something();”>
<br />
<iframe src=”http://youtube.com/watch?v=m55kgyApYrY” name=”video_frame” id=”video_frame”></iframe>
Thanks for your help in advance!