Knowledge Walls
Gopal Rao
Mumbai, Maharashtra, India
Passcode:
How to get url of current page in jquery in Jquery Syntax of JQuery Examples
2807 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
  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