I have an input field where a user can paste a link. I would like to have a div appear as soon as the user adds a URL to the input field.
Until now I used .blur
and .onfocus
, but the div only appears once I click outside the input field after pasting the URL.
It's like on Facebook: as soon as you paste a link it will load a box without reloading the page.