How can i always read the first word for example the word \” something\” after the port number using jquery/javascript?
Here is the url and i want to get whatever the first word after the port number
http://www.aaa.com:1081/something/arap/con.html
$(document).ready(function() {
var currentUrl= window.location.pathname;
alert (currentUrl);
});





Rating:
The post javascript – how to read words in the url using jquery? appeared first on Javascript ASK.
via Javascript ASK http://javascriptask.phpfogapp.com/javascript-how-to-read-words-in-the-url-using-jquery.html
No comments:
Post a Comment