title: Get only file name from file input on internet explorer
body: <p>I need to return only the file name from an HTML input file.</p>
  
  <pre><code>&lt;input type="file" id="whatever" /&gt;
  </code></pre>
  
  <p>The JavaScript code im using to get the name of the file is:</p>
  
  <pre><code>document.getElementById("whatever").value;
  </code></pre>
  
  <p>In firefox it gives only the file name which is what I want, but in IE I get the full path. </p>
  
  <p>I think that string manipulation is the only way to get the name.</p>
  
  <p>What would be the easiest/shortest way to get only the name (extension too) in JavaScript? Thanks.</p>