Query Variable Function

/ Published in: JavaScript
Save to your folder(s)

This function extracts a value from a url. Very useful for tracking codes. For example, you have a url http://your.url/?source=666999, and you need the source number to be placed into a variable. Use the code below.

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.