title: Hiding an HTML Form's Submit Button
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2271464/getting-a-form-to-submit-when-the-enter-key-is-pressed-when-there-is-no-submit-b">Getting a form to submit when the enter key is pressed when there is no submit button</a>  </p>
  </blockquote>
  
  
  
  <p>I'm trying to implement a text input box with an invisible submit feature. As such, the field has no submit button attached and is submitted when the "enter" key is pressed.</p>
  
  <p>Here's an example of how I want the code to function:</p>
  
  <pre><code>&lt;form method="get" action="&lt;?php bloginfo('home'); ?&gt;/"&gt;&lt;p&gt;
  
  &lt;input class="text_input" type="text" value="SEARCH: type &amp;amp; hit Enter" name="s" id="s" onfocus="if 
  (this.value == 'SEARCH: type &amp;amp; hit Enter') {this.value = '';}" onblur="if (this.value == '') 
  {this.value = 'SEARCH: type &amp;amp; hit Enter';}" /&gt;
  
  &lt;input type="hidden" id="searchsubmit" value="" /&gt;&lt;/p&gt;&lt;/form&gt;
  </code></pre>
  
  <p>Here's the code I can't get to work:</p>
  
  <pre><code>&lt;p&gt;Have us call you. Input your number:&lt;/p&gt;
  &lt;input type="text" id="phone" name="phone" maxlength="10" size="10"&gt;
  &lt;input type="submit" value="Click-to-Call"  onclick="window.open('http://secure.ifbyphone.com/clickto_status.php?click_id=34124&amp;phone_to_call=' + getElementById('phone').value + '&amp;key=asdfjknj3459dj38sdka92bva', 'Clickto' , 'width=200,height=200,toolbar=no,location=no, menubar=no, scrollbars=no, copyhistory=no,resizable=no')"&gt;
  </code></pre>
  
  <p>I've tried adding the form attribute with a GET request to the URL in the "onclick" portion to no avail.</p>
  
  <p>Any thoughts on how to make this work?</p>