What is the pathname property?
Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.
What is the pathname property?
Rating:
The pathname property belongs to the location object. It refers to the directory structure relative to the server's root directory. The directory names are separated by a single slash (/) within the root.
The following example will demonstrate the directory structure in a URL:
The syntax for using the pathname property is as follows:
Rating:
Was this information helpful?
Other articles
- What is the bgColor property?
- How to use the fgColor property?
- How to create a cookie?
- What is the Date object?
- What is the while loop?