I successfully passed my URL parameters from one page to another using a form. My URL on the second page has one URL parameter and looks now like this:
http://www.agentmakers.com/home-worth-demo-2/?street_address=2117+agincourt+ann+arbor+mi+48103
I would like to use the “street_address” value to generate a different Google Map everytime on the second page…
I have used custom html to iframe a google map onto the second page. The iframe code looks like this:
<iframe width="600" height="450" src="https://www.google.com/maps/embed/v1/place?key=MY_API_KEY&q=2117+agincourt+ann+arbor+mi+48103"></iframe>
Is there a simple javascript code to use on the second page that will insert the “street_address” parameter into the “q” value in the iframe source?
Do I need one script to pull out the URL parameter, and another script to replace the value?
I’m lost. Please help.