How to get the current page url in javascript

  • 0
use below method to get current url in javascript:
var hrf = window.location;
console.log(hrf);

use below method to get current url in javascript: var hrf = window.location; console.log(hrf);

use below method to get current url in javascript: var hrf = window.location; console.log(hrf);