Try to search your question here, if you can't find : Ask Any Question Now ?

Last segment of URL

HomeCategory: stackoverflowLast segment of URL
Avatargaurav asked 1 month ago

How do I get the last segment of a url? I have the following script which displays the full url of the anchor tag clicked:

$(".tag_name_goes_here").live('click', function(event)

If the url is


how do I only get it to display the “file” part of the url in the alert box?

1 Answers
Best Answer
Avatarnaveen answered 1 month ago
Your Answer

14 + 19 =

Popular Tags

WP Facebook Auto Publish Powered By :