title: javascript input textbox link
body: <p>i want to create a input textbox with value link and write a code like this:</p>
  
  <pre><code>&lt;form&gt; 
  &lt;input name="Textboxfield" type="text" value=".jpg"&gt;&lt;br&gt; 
  &lt;input name="Launchlink" type="button" value="Launch link" onclick="location.href=this.form.elements['Textboxfield'].value"&gt; 
  &lt;/form&gt; 
  </code></pre>
  
  <p>this is a good code for me but have some problems.
  in this code the value ".jpg" is variable but i wants to keep it stable who when user insert his/her number in textbox, can go to destination link.</p>
  
  <p>for example:</p>
  
  <p>i insert my number 22456 in this textbox like this: 22456.jpg
  and when i press botton the page directly go to my file (a pic).
  but
  when i insert my number without .jpg format the page goes wrong and break the system (show index page)</p>
  
  <p>and thats my problem! how can i have stable value link ".JPG" who when user jus isert his/her number to textbox the page directlty go to his/her file and show it.</p>
  
  <p>also you can see this image:
  <a href="http://0o.8415.2.img98.com/out.php/i543815_code.jpg" rel="nofollow">http://0o.8415.2.img98.com/out.php/i543815_code.jpg</a></p>
  
  <p>please help me guys...</p>