jquery get current url
var currentURL = $(location).attr('href'); //jQuery solution
var currentURL = window.location.href; // raw javascriptvar currentURL = $(location).attr('href');
var currentURL = window.location.href;var pathname = window.location.pathname;
Also in JavaScript:
- resizing div js
- factorial program in javascript
- get meta tag value from url javascript
- how to reload page on button click in javascript
- javascript style
- sjson.Set query
- i18n angular
- js crpyto generate safe token
- javascript return a random value from an array
- arithmetic expressions in scheme
- jquery open a new tab
- in object transform translate property concat with rotate value angular 7
- reactjs fix ios apostrophe encoding
- mysql json get value
- graphql react filtering
- array method return boolean
- javascript replace multiple spaces with single space
- get file extension of path extendscript
- stripe stripe js
- import fs node js
- vue js Elements in iteration expect to have 'v-bind:key' directives
- search string in file node
- js array delete last
- how to set validation for email in javascript