find address of webpage for embedded form

find address of webpage for embedded form

I have one form that will be embedded in two different websites. The functionality of teh form changes slightly depending on which website it starts from. Is there a way to detect information on the starting page such as the url?

Thanks

Herb Wexler