Download YouTube Video *from URL/LINK* with JAVASCRIPT
I am trying to create a website/webpage that takes a user-specified URL/Link from a textbox (in a form if possible), and when the user clicks a button, the video is downloaded in the format that the user specified in a drop-down menu, so MY REAL QUESTION IS: how do you take a youtube URL/Link (of any kind) and download the (YouTube) video from that page with Javascript. If someone could tell me any good (java)script(s) to accomplish this (preferrably with tutorials, if possible), I would MUCH appreciate it!

Thanks!!! :)
Download YouTube Video *from URL/LINK* with JAVASCRIPT
===

I am trying to create a website/webpage that takes a user-specified URL/Link from a textbox (in a form if possible), and when the user clicks a button, the video is downloaded in the format that the user specified in a drop-down menu, so MY REAL QUESTION IS: how do you take a youtube URL/Link (of any kind) and download the (YouTube) video from that page with Javascript. If someone could tell me any good (java)script(s) to accomplish this (preferrably with tutorials, if possible), I would MUCH appreciate it!

Thanks!!! :)