How To Get The Current Path, HREF, and Title Using jQuery
erics, Posted June 5th, 2011 at 8:03:54pm
Various Ways to Obtain Various Information:
1 2 3 4 5 |
jQuery(document).ready(function() { var Path = window.location.pathname; var HREF = jQuery(location).attr('href'); var Title = jQuery(this).attr('title'); }); |
Leave Your Comment
All fields marked with "*" are required.