I have a url like http://mywebsite.com/folder1/folder2/index
How do I parse this above url and get all the values separately?
I want the output to be like:
http, mywebsite.com, folder1, folder2, index
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If your URL is held in a variable, you can use the split() method to do the following:
If you want to parse the current URL of the document, you can work on
window.location: