About 7,490 results
Open links in new tab
  1. JavaScript Window Location - W3Schools

    The window.location object can be used to get the current page address (URL) and to redirect the browser to a new page. The window.location object can be written without the window prefix. Some …

  2. Window: location property - Web APIs | MDN - MDN Web Docs

    Nov 25, 2025 · Although the location property itself is read-only in the sense that you can't replace the Location object, you can still assign to the location property directly, which is equivalent to assigning …

  3. window.location.href and window.open () methods in JavaScript

    Aug 16, 2011 · window.location.href is not a method, it's a property that will tell you the current URL location of the browser. Changing the value of the property will redirect the page.

  4. JavaScript | window.location and document.location Objects

    Jul 12, 2025 · window.location and document.location: These objects are used for getting the URL (the current or present page address) and avert browser to a new page or window. The main difference …

  5. JavaScript Window Location - Tutorial Republic

    In this tutorial you will learn about the JavaScript window location object. The location property of a window (i.e. window.location) is a reference to a Location object; it represents the current URL of the …

  6. Window.location - Web APIs | MDN

    The Window.location read-only property returns a Location object with information about the current location of the document. Though Window.location is a read-only Location object, you can also …

  7. JavaScipt Location - JavaScript Tutorial

    Summary: in this tutorial, you will learn about the JavaScript Location object and how to manipulate the location effectively. The Location object represents the current location (URL) of a document. You …

  8. Location - Web APIs | MDN - MDN Web Docs

    Oct 13, 2025 · The Location interface represents the location (URL) of the object it is linked to. Changes done on it are reflected on the object it relates to. Both the Document and Window interface have …

  9. window.location Cheatsheet | SamanthaMing.com

    Here's the complete list of properties that you can change: The only property you can't set is window.location.origin. This property is read-only. The window.location returns a Location object. …

  10. Window Location Object - W3Schools

    The Window Location Object The location object contains information about the current URL. The location object is a property of the window object. The location object is accessed with: …