SyntaxFix
Write A Post
Hire A Developer
Questions
You could use a RegEx to match the value of v and build the URL yourself since you know the URL is youtube.com/watch?v=...
v
http://jsfiddle.net/akURz/
var url = 'http://youtube.com/watch?v=3sZOD3xKL0Y'; alert(url.match(/v\=([a-z0-9]+)/i));