I want to get the v=id from youtube's URL with javascript(no jquery, pure javascript);
Example Youtube URL formats:
http://www.youtube.com/watch?v=u8nQa1cJyX8&a=GxdCwVVULXctT2lYDEPllDR0LRTutYfW
http://www.youtube.com/watch?v=u8nQa1cJyX8
or any other youtube format what contains a video id in the url
Result from these formats
u8nQa1cJyX8