How do you capture an event for a URL dropped on an input box
<p>I have a web form with a text input box for a url. When I drag a url from the browser's (I'm using firefox but i'd like it to work in others too if possible) address bar to the input box it inserts the url text into any pre-existing text. I want the url to overwrite any existing text instead. </p>

<p>I'm thinking I could capture some event and ease any existing text before adding the dropped text. </p>

<p>If it's possible to set up using jQuery that's nice, otherwise in simple javascript.</p>

<p><strong>Edit</strong></p>

<p>This seems to work:</p>

<pre><code>$("#myinput").bind("drop", function(e) {  
      e.currentTarget.value = "";  
      return true;  
});
</code></pre>

<p>I'm not sure what browsers support this event but if it's most modern ones then it should be fine.</p>
