How to get url with Jquery and PHP

current URL in address bar

PHP

$pageURL= $pageURL= $_SERVER["REQUEST_URI"].$_SERVER["REQUEST_URI"];

Jquery

$(document).ready(function() {
var pathname = window.location.pathname;
alert (pathname);
});


No Comments to “How to get url with Jquery and PHP”  

  1. No Comments

Leave a Reply