Thread:Mathmagician/@comment-3508190-20120504092551/@comment-3508190-20120504163422

Strictly speaking that's impossible. You cannot simply load any web page you please into your own and evaluate it. The browsers' security restrictions prohibit that. Good thing too, if you ask me.

Youtube is a different story, though. They have an API for that sort of thing:

function getYoutubeClipTitle (videoURL, callback) { var m, videoCode; if (!(m = videoURL.match(/v\=([^&]+)/))) return; videoCode = m[1]; $.get('http://gdata.youtube.com/feeds/api/videos/' + videoCode,       function (document) {            callback($(document).find('title').text);        }    ); }

getYoutubeClipTitle('http://www.youtube.com/watch?v=mk17xA-JM3k', function (title) {   console.log(title); });