javascript - What is the function of google.maps.event.addDomListener(window, 'load', initialize);? -
i trying google maps. found statement.
google.maps.event.adddomlistener(window, 'load', initialize); what function of statement ?
it adds listener window object, load event triggered (i.e. "the page has finished loading") executes function initialize.
i.e. delays google map related script until page has finished loading.
Comments
Post a Comment