<!DOCTYPE html>
<html>
<head>
<title>Google Maps JavaScript API v3 Example: Marker Simple</title>
<script type="text/javascript">
function callafunction(){
var latlng = new google.maps.LatLng(-25.363882,131.044922);
marker = new google.maps.Marker({
position: latlng,
map: map
});
}
function initialize() {
var myLatlng = new google.maps.LatLng(-25.363882,131.044922);
var myOptions = {
zoom: 4,
center: myLatlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
}
var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
}
</script>
</head>
<body onload="initialize()">
<form id="callafunction" action="#" onSubmit="return false;">
<input type="submit" value="callafunction" onClick="callafunction(); return false;"/>
</form>
<div id="map_canvas"></div>
</body>
</html>