Edit in JSFiddle

function initialize()
{
    var myLatLng = new google.maps.LatLng(28.617161,77.208111);
    var map = new google.maps.Map(document.getElementById("map"),
    {
        zoom: 17,
        center: myLatLng,
        mapTypeId: google.maps.MapTypeId.ROADMAP
    });

    var marker = new google.maps.Marker(
    {
        position: myLatLng,
        map: map,
        title: 'Rajya Sabha'
    });
}
<html>
<head>
<title>Google Maps API v3 - Simple marker example
</title>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false">
</script>
<script type="text/javascript">
<!--Insert the Javascript below here in case you want to try this code.-->
</script>
</heaad>
<body onload="initialize()" onunload="GUnload()">
<div id="map" style="width: 500px; height: 300px">
</div>
</body
</html>