Is there a way to retriev the name/value of all global variables on a page?
I would like to write a javascript function to do the following:
- Find all global variables prefixed with 'xxx_' and stick them in an array (for e.g.)
- build a query string using the name value pairs as follows: xxx_glob_var1=value1&xxx_glob_var2=value2 etc
Could anyone offer some snippets to show how I may do this?