title: displaying a browser page element by using Javascript alert() fails if after AJAX .load of element from server
body: <p>ter using AJAX .load to read an element from the server page to the browser page, after that, the element will no longer display correctly in an alert().</p>
  
  <p>In the following page:
  1. PRESS "DO ALERT" BUTTON 
  The alert box shows: "autonomous operation started"</p>
  
  <ol>
  <li><p>PRESS "DO .LOAD" BUTTON (which does the .load)</p></li>
  <li><p>PRESS "DO ALERT" BUTTON
  Alert box now corrupt:  "busy restarting"</p></li>
  </ol>
  
  <p>Recycle page, and PRESS SECOND now works.</p>
  
  <pre><code>HERE IS THE PAGE..................
  
  &lt;html&gt;
  &lt;head&gt;
      &lt;script type="text/javascript" src="jquery.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript"&gt;
  
  
  
          // Repeatedly updates the page with only the changing MM state.
          function process_load_command() {
              // Copy windmark from server to browser page element:
                          windmark_field_id = "MM_upload_status_windmark_field_id"
                          $('#' + windmark_field_id).load(' #' + windmark_field_id);
          }
  
  
          function process_alert_command() {
               var browser_element = document.getElementById("MM_upload_status_windmark_field_id").innerHTML
               alert(browser_element)
  
               var new_element = document.getElementById("new_element")
  
              // Clean the ends of the MM_upload_status_windmark:
                 // sliced = aa.slice( 
  
               new_element.innerHTML =  browser_element 
               alert(new_element.innerHTML)
          }
  
  
  
  
  
  
      &lt;/script&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  
      WINDMARK EXPERIMENT 2/29/2012b
      &lt;br /&gt;
      &lt;br /&gt;
      &lt;br /&gt;
          MM_upload_status = &lt;span id="MM_upload_status_windmark_field_id"&gt;$%MM_upload_status_windmark#$&lt;/span&gt;  
      &lt;br /&gt;
      &lt;br /&gt;
      &lt;button onclick="process_load_command()" type="button"&gt;
          DO .LOAD&lt;/button&gt;
      &lt;br /&gt;
      &lt;br /&gt;
      &lt;button onclick="process_alert_command()" type="button"&gt;
          DO ALERT&lt;/button&gt;
  
          &lt;br /&gt;&lt;br /&gt;
      new_element = &lt;span id="new_element"&gt;not set&lt;/span&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>