Q:

Javascript simple printing passing parameters

I am expecting to print values of passing parameters in below code. But it prints [Object Event].
I am new to presentation development. What Am I missing here. 
 <body onload("initialize('-33.873651000000000000','151.206889600000070000')")>

 <!DOCTYPE html>
 <html>
 <head>
 <script src=""></script>

 <script>
function initialize(longitude,latitude){
 alert(longitude)
 }
</script>

A:

The body tag needs to be placed within the html tag. Also use onload=""
 <!DOCTYPE html>
 <html>
 <head>
 <script src=""></script>

 <script>
function initialize(longitude,latitude){
 alert(longitude)
 }
</script>
   </head>

   <body onload= "initialize('-33.873651000000000000','151.206889600000070000')")>
   </body>
</html>

