Consider:

http://example.com/page.html?returnurl=%2Fadmin

For js within page.html, how can it retrieve GET parameters?

For the above simple example, func('returnurl') should be /admin.

But it should also work for complex query strings…

17 Answers
17

Leave a Reply

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