If my url is http://link-ads.blogspot.com/?url=http://could-be-any-url.com&name=123456789101112 using purely javascript how would I extract &client= so it would extract 123456789101112 and set it as var clientid = 123456789101112;
If my url is http://link-ads.blogspot.com/?url=http://could-be-any-url.com&name=123456789101112 using purely javascript how would I extract &client= so
Share
If it can contain more than numbers, use something like…
If the param could not be found, it will return
undefined.If you need to do this more often, you’d be better off with a generic solution.