Knowledge Walls
Gopal Rao
Mumbai, Maharashtra, India
Passcode:
How to get url of current page in jquery in Jquery Syntax of JQuery Examples
3898 Views
Syntax
// To get the path address of the Url
var pathname = window.location.pathname;
// /about/home.aspx

// To get the complete Url
var pathname = window.location.href;
// http://localhost:1003/about/home.aspx
Best Lessons of "JQuery Examples"
Top lessons which are viewed more times.
  Copyright © 2014 Knowledge walls, All rights reserved
KnowledgeWalls
keep your tutorials and learnings with KnowledgeWalls. Don't lose your learnings hereafter. Save and revise it whenever required.
Click here for more details