I want to get page number from this url
https://localhost:44385/Product/5/p-skrj?Page=3
and this is my js code from this link
$(document).ready(function () {
var address = window.location.href;
var pagenumber = address.match(/\/page\/(\d*)/)[1];
alert(pagenumber);
});
but still not working.