function getParameterByName(name) { return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.search)||[,""])[1].replace(/\+/g, '%20'))||null; }
Get URL Query String Parameter By Name With Plain JavaScript
See more: JavaScript
Questions and Comments are Welcome