---
title: "#pathname articles | Hashnode"
description: "Explore 4 articles tagged #pathname on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/pathname"
---

Tag

# #pathname

4 posts · 0 followers

[Waqas Naeem Bajwa](https://hashnode.com/@devbajwa) · [Aug 30, 2022](https://hashnode.com/posts/how-to-find-pathname-of-any-url-javascript/630dadc843d7308e3e329698)

### [How to find pathname of any URL - Javascript](https://devbajwa.com/how-to-find-pathname-of-any-url-javascript?utm_source=hashnode&utm_medium=feed)

Convert string to URL with Javascript Web API

2 min read · [devbajwa.com](https://devbajwa.com/how-to-find-pathname-of-any-url-javascript?utm_source=hashnode&utm_medium=feed)

[Hari Krishna Anem](https://hashnode.com/@hkrishna) · [Jan 18, 2022](https://hashnode.com/posts/javascript-how-to-get-the-url-parts-from-a-url/63294be8195e7dc741da6f9b)

### [JavaScript: How to get the URL parts from a URL](https://harikrishna.hashnode.dev/javascript-how-to-get-the-url-parts-from-a-url?utm_source=hashnode&utm_medium=feed)

const url = new URL('http://example.com:12345/blog/foo/bar?startIndex=1&pageSize=10'); const { protocol, hostname, port, pathname, search } = url; console.log('protocol =>', protocol); console.log('hostname =>', hostname); console.log('port =>', por...

1 min read · [harikrishna.hashnode.dev](https://harikrishna.hashnode.dev/javascript-how-to-get-the-url-parts-from-a-url?utm_source=hashnode&utm_medium=feed)
