Share this post:
In this post i give you three way to get current url in your js file as there are bellow listed:
Ok, so you can check bellow example code and run in your system.
<title>JQuery - get current URL Example</title>
var currentURL = window.location.href;
var currentURL = $(location).attr("href");
var currentURL = window.location;
- How to get Query Strings Value in Laravel 5?
- AngularJS tooltip using UI Bootstrap tpls HTML example with demo
- PHP: How to count files in folder?
- How to create laravel 5 widgets ?
- Group by year month example in Laravel 5 using Query Builder
- How to create custom facade in laravel 5.2?
- Crop, Resize, Frames etc on selected image in php using Aviary
- How to create Pagination using dirPagination directive in Angularjs example with demo ?