I have a web form with an input text box for a url. When I drag the URL from the browser (I use firefox, but I would like it to work in others, if possible) the address bar in the input field, it inserts the url text into any existing text. I want the url to rewrite any existing text.
I think I can capture some kind of event and lighten any existing text before adding the discarded text.
If you can customize using jQuery, which is good, otherwise in plain javascript.
Edit
It works:
$("#myinput").bind("drop", function(e) { e.currentTarget.value = ""; return true; });
I'm not sure that browsers support this event, but if it is the most modern, then everything should be fine.
tukra source share