title: How to stop run javascript function when asp.net webform loaded?
body: <p>I'm write this code for show my position on the map:<br/></p>
  
  <pre><code>&lt;script src="http://maps.googleapis.com/maps/api/js"&gt;&lt;/script&gt;
     &lt;script&gt;
         function initialize(x, y) {
             alert(x);
             alert(y);
             var mapProp = {
                 center: new google.maps.LatLng(x, y),
                 zoom: 5,
                 mapTypeId: google.maps.MapTypeId.ROADMAP
             };
             var map = new google.maps.Map(document.getElementById("googleMap"), mapProp);
         }
         google.maps.event.addDomListener(window, 'load', initialize);
  &lt;/script&gt;
  </code></pre>
  
  <p><br/>
  up code run the initialize function when page load or postback,but i write this code for asp button:<br/></p>
  
  <pre><code>Page.ClientScript.RegisterStartupScript(this.GetType(), "beh", "initialize(38.076306,46.279637);", true); 
  </code></pre>
  
  <p><br/>
  and i want when button fire,send value to function and java script function change the map position,it's work,but when button fire,function run ,and run again when web form loaded!,and in first time show correct position,but when page load event occurred,send null value to function and show empty position, i think when run java script function in asp button fire,and not run java script function when page load occurred?</p>