putting javascript variable in a html link included within javascript code

reboot

New Member
I want a simple way to display a picture in html within a google maps infobox from a variable in javascipt. Currently the infobox displays the image link:\[code\]var address = xmldata.getElementsByTagName('postalCode')[0].firstChild.data;var picture = xmldata.getElementsByTagName('viewItemURL')[0].firstChild.data;var info_text = picture + '<br />' + address;\[/code\]I have tried \[code\]var info_text = address + '<a href="http://stackoverflow.com/questions/15681241/picture"></a>';\[/code\]
 
Back
Top