get the current url javascript
var currentUrl = window.location.href;window.location.pathname; // Returns path only (/path/example.html)
window.location.href; // Returns full URL (https://example.com/path/example.html)
window.location.origin; // Returns base URL (https://example.com)
Also in JavaScript:
- angular prod apache config for route
- javascript print array
- how to remove sub array null index in javascript
- how to check size of stack Javascript
- replace array element javascript stack overflow
- radio button group get value javascript
- error message remove after checkbox fill in jquery
- how to change the staticness of a object in matter.js
- react dom
- javascript group by key
- different types ways of export and import in javascript
- javascript Prevent Object MutationPassed
- jQuery create div element
- preventive vs reactive
- how to display date in javascript
- font awesome react
- Disable Multiple Form Submits with Vanilla JavaScript
- js tab in textarea
- stop propagation
- chartjs template jquery html
- moment hour minute
- rebuild android react native
- filter array objects javascript
- split in js