Get Parameter from URL

Get Parameter from URL

Hey I'am building a little site with jquery. Now I have a Problem. I want that if in the url ?product=anyid is, a function is called. If the url is empty and has no parameter the normal site should appear and run.

This is for building a permalink to products and you can open them with http://domain?product=123.

Cheers