Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to get id from url in javascript

var baseUrl = (window.location).href; // You can also use document.URL
var koopId = baseUrl.substring(baseUrl.lastIndexOf('=') + 1);
alert(koopId)//503
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #id #url #javascript
ADD COMMENT
Topic
Name
3+3 =