javascript url parsing

Posted by Ra on Stack Overflow See other posts from Stack Overflow or by Ra
Published on 2010-05-05T05:04:08Z Indexed on 2010/05/05 5:08 UTC
Read the original article Hit count: 205

Filed under:

Hi,

I have a url like http://mywebsite.com/folder1/folder2/index

how to parse this above url and get all the values separately? I want the output like http, mywebsite.com, folder1, folder2, index

Thanks in adavance

© Stack Overflow or respective owner

Related posts about JavaScript