Get URL parameters in the program?

How to get URL parameters in the program? For example, http://example.com?product=1234&utm_source=abcd, how the parameter can be transfered into Textarea1.value automatically at the beginning of the programs?

It has been asked before: Query string from web app

It works. Thank you very much for your help.