I am trying to get my google maps to display for several locations but the onclick as shown below is not getting to my function b. What am i doing wrong? thanks
Javascript
function b(){
dlat=40.856771;
dlng=0.578294;
alert(dlat);
getLoc();
 }
function init() { 
document.getElementById("click").onclick = b;
 }
 window.onload = init
HTML
    <ul data-role="listview" data-split-icon="star" data-split-theme="a">
            <li><a href="#1"><h1>task1</h1></a><a href="#popup" id="click" data-rel="popup" data-position-to="window" data-transition="fade"> </a></li>
        </ul>
        <div data-role="popup" id="popup" data-overlay-theme="a" data-theme="a" data-corners="false" data-tolerance="15,15">
            <a href="#" data-rel="back" data-role="button" data-theme="a" data-icon="delete">Close</a>
            <iframe src="map.html" width="320" height="320" seamless></iframe>
        </div>
could this be causing problems?
– user3674474 May 29 '14 at 18:48