Thank you for your detailed reply with comments! That was very helpful to gather the variables. Now I'm left hanging with getting them into those <a> tags. I hate to request to be spoon fed here but need a little more help to get to the correct syntax for:
1. <a href="www.myurl.com/index.html?"+'foo'>link1</a>
resulting in the a tag hyperlink www.myurl.com/index.html?bar
... or the addition of the <img src="./images/.."> tag so I can link an image to that dynamic URL
2. <iframe src="www.myurl.com/index.html?"+'glomp'></iframe>
resulting in the iframe opening for www.myurl.com/index.html?the%20widget
Again, my apologies for being thick here! Thank you..