Buradasın
JavaScript Window Location Href Property
scaler.com/topics/javascript-window-location/Yapay zekadan makale özeti
- Basic Information
- Window.location.href returns the current URL of a web page
- Location object is a property of window object
- Location object has 11 properties and 3 methods
- URL Manipulation
- Href property can be used to display or update URLs
- Other properties like hostname can be accessed separately
- Assign() method allows navigation back to previous page
- Replace() method prevents navigation back to previous page
- Dynamic Features
- Reload() method works like browser's refresh button
- Reload() method doesn't take any arguments
- Location object provides methods for URL manipulation