extract GET parameters from a user inputed url with javascript

Posted by Jigs on Stack Overflow See other posts from Stack Overflow or by Jigs
Published on 2010-05-16T12:59:22Z Indexed on 2010/05/16 13:10 UTC
Read the original article Hit count: 197

Filed under:

I am looking to use javascript to extract the GET parameters from a user inputed url.

For example is a user enters a url say:

http://www.youtube.com/watch?v=ee925OTFBCA

I could get the v parameter

'ee925OTFBCA' as a variable

Thanks in Advance.

© Stack Overflow or respective owner

Related posts about JavaScript