Dapatkan URL aktual dalam variabel

var currentLocation = window.location;
Prickly Pheasant