GoogleMapでGPS情報で現在位置を表示させる Javascript

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
    <title>HTML 5 GeoLocation Demo</title>
    <script type="text/javascript">
        if (navigator.geolocation) {
            navigator.geolocation.getCurrentPosition(function(position) {
                var pos = position.coords.latitude+","+position.coords.longitude;
                location.href =  "https://maps.google.co.jp/maps?q=" + pos;
            });
        } else {
            alert("I'm sorry, but geolocation services are not supported by your browser.");
        }
    </script>
</head>
<body>
</body>
</html>