| Join Forum
Sign In
Ask Question
ConcretePage.com
HOME
JAVA
≤ JAVA 6
JAVA 7
JAVA 8
JAVA 9
JDBC
JNDI
JPA
JSF 2
JSP & SERVLET
DESIGN PATTERN
SPRING
SPRING BOOT
SPRING 5
SPRING 4
SPRING 3 CORE
SPRING 3 MVC
SPRING 3 SECURITY
SPRING BATCH 3
SPRING SESSION
FRAMEWORK
HIBERNATE 3
HIBERNATE 4
STRUTS 2
PRIMEFACES 5
MYBATIS 3
QUARTZ
FREEMARKER
THYMELEAF
JUNIT 5
UTILITY
APACHE API
GOOGLE API
JACKSON API
ITEXT
WEB SERVICES
RESTEasy 3
JAX-RS/JAX-WS
WEB
NGRX
ANGULAR MATERIAL
JQUERY
HTML5
ANGULAR JS
JQUERY MOBILE
CSS 3
JAVASCRIPT
TOOLS
MAVEN
GRADLE
ECLIPSE
ANGULAR
ANDROID
PYTHON
INTERVIEW
QUIZ
FORUM
Home
>
Forum
>
JavaScript
Post New Query
How do I get the path of the current URL
Vipul
Asked on November 07, 2013
I am using jQuery. How do I get the path of the current URL and assign it to a variable?
Atul_Rai
Replied on November 08, 2013
use this, may its help you...
var pathname = windows.location.pathname;
Sudhir
Replied on November 10, 2013
var url = window.location.href
Write Answer
Login | Sign Up
Tweet
Related Post
"Error: [$resource:badcfg] Error in resource configuration for action `save`. Expected response to contain an object but got an array
Difference between data-ng-model and ng-model in AngularJS
Difference between AngularJS .then and .success callback
Difference between async and defer in JavaScript
validate select is not working
How to Set Page Height Dynamically in jQuery
Difference between document.height and window.height
How to Append Html Code Using jQuery
new div when text became overflow from div
view of the browser at the bottom...
validate input field onclick of a button
I make sure all functions are declared AFTER document.ready is fire
id of an element in jquery run time
window positions in center
mobile jquery for iPhone
Jquery
Latest Forum Post
Json Property tag issue
(Web Server)
Red Cross on WIFI Windows 7
(MS Windows)
License management module example project using spring boot
(Spring)
Change dispatcher-servlet.xml file name in Spring
(Spring)
CLASSPATH vs MODULEPATH in Java
(Core Java)
Top Trends
Angular 2 Radio Button and Checkbox Example
Angular 2 Http post() Example
Java 8 Stream: allMatch, anyMatch and noneMatch Example
Java 8 Stream sorted() Example
Angular 2/4 Pattern Validation Example
Popular Post
Java 8 Stream reduce() Example
Angular 2 Select Option + Multiple Select Option + Validation Example using Template-Driven Form
Angular 2/4 minlength and maxlength Validation Example
Angular HttpClient post
Spring Boot CrudRepository Example
Favorite Links
Java Technology
Hibernate Annotations
Spring Framework
JQuery
Apache Struts
MyBatis
Quartz Scheduler
Angular
Thymeleaf
FreeMarker
About Us
We are a group of software developers.
We enjoy learning and sharing technologies.
To improve the site's content,
your valuable suggestions
are most welcome.
Thanks
Email :
concretepage@gmail.com
Mobile Apps
ConcretePage.com
SCJP Quiz