---
title: "Discussion on \"window.location.href or window.open()\" | Hashnode"
description: "Discussion on \"window.location.href or window.open()\". Navigating in the browser with the window object"
url: "https://hashnode.com/posts/windowlocationhref-or-windowopen/63751444aecbd95683e9fefb"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [window.location.href or window.open()](https://gzamann.hashnode.dev/windowlocationhref-or-windowopen?utm_source=hashnode&utm_medium=feed)

Navigating in the browser with the window object

Nov 16, 2022 · 2 min read · gzamann.hashnode.dev  
Updated Jul 31, 2024  
Read the article

-   [#browsers](https://hashnode.com/tag/browsers)
-   [#navigation](https://hashnode.com/tag/navigation)
-   [#chrome-cj73auo4o0012c3wted1yb7a1](https://hashnode.com/tag/chrome-cj73auo4o0012c3wted1yb7a1)
-   [#url](https://hashnode.com/tag/url)
-   [#location-api](https://hashnode.com/tag/location-api)

## Written by

[Gulshan](https://hashnode.com/@gzamann)

@gzamann · Bangalore, India

  
[View profile](https://hashnode.com/@gzamann)

Frontend Web Developer

I'm a frontend engineer with 5+ years of experience in building modern web-apps. I like to share my experience through writing, hoping to help other devs learn something interesting or useful.

## Responses 1

Markdown supported · ⌘↵ to post

[Gulshan](https://hashnode.com/@gzamann)

[Nov 16, 2022](https://hashnode.com/posts/windowlocationhref-or-windowopen/63751444aecbd95683e9fefb/comment/6375177ce1d53a5fd290e870)

window.open be like: ![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1668618081286/7PjqEWNJJ0.png) ttps://tenor.com/view/send-me-location-khabib-gif-12726206
