title: javascript:return WebForm_FireDefaultButton(); what is this function doing, and how can I replicate it?
body: <p>I'm trying to put a search button on a page that behaves the same as the button on the parent site. The sites are on different domains, so I may have to change some of the button's functionality. I'm trying to figure out what the button on the parent site is doing so that I can replicate it.</p>
  
  <p>This is the HTML for the search bar and submit button on the parent site:</p>
  
  <pre><code>&lt;div id="ctl00_pnlSearch002" onkeypress="javascript:return WebForm_FireDefaultButton(event, 'ctl00_btnSearch002')"&gt;
  
      &lt;div class="utilities floatRight"&gt;
          &lt;ul&gt;
              &lt;li class="searchButton"&gt;&lt;input type="image" name="ctl00$btnSearch002" id="ctl00_btnSearch002" src="/images/design002/btn_search.jpg" style="width: 30px; height: 22px; border: none;"&gt;&lt;/li&gt;
              &lt;li class="search"&gt;&lt;input name="ctl00$txtSearch" type="text" id="ctl00_txtSearch" value="Search" onblur="if (value == '') {value = 'Search'}" onfocus="if (value == 'Search') {value =''}"&gt;&lt;/li&gt;
              &lt;li class="paddingL"&gt;&lt;a href="javascript:textResizer.doResize(1)" class="aPlus"&gt;A+&lt;/a&gt;&lt;a href="javascript:textResizer.doResize(-1)" class="aMinus"&gt;A-&lt;/a&gt;&lt;/li&gt;
         &lt;/ul&gt;
      &lt;/div&gt;              
  &lt;/div&gt;
  </code></pre>
  
  <p>So far I've pasted the same html onto my new page, but the submit button doesn't do anything. </p>