Playing with Google Map API
Once I signed up for a Google Map API key, I got an example of HTML/Javascript code for adding Google map on a webpage. Only problem was that it was using "onload" function in HTML body tag. It is easy to add a Javascript code in blogger by editing template but I didn't want to mess it up.
I finally figure out how to add function to onload event. I'm getting used to writing a Javascript now.
<body onload="load()" onuload="GUnload()">replace it with
window.onload=load;
window.onunload=GUnload;
No comments:
Post a Comment