Detect URL In Input
Using jQuery

TalkersCode.com