Get URL parameter in javaScript

URL parameter

Using javaScript you can get the URL parameter also. Using Array.prototype.slice.call you will get the all parameters that is append in URL string.

Example of URL parameter:

var args = Array.prototype.slice.call(arguments);

You can get the value using: arg[0], arg[1] etc.

Leave a Reply

Your email address will not be published. Required fields are marked *