title: Javascript Image Url Verify
body: <p>I need to verify an image url to check whether the url is an image of any of these extensions:- jpeg, jpg, gif, png. Example:- when we verify this url <a href="http://www.example.com/asdf.jpg">http://www.example.com/asdf.jpg</a> it should give us true value and with url like this <a href="http://www.example.com/asdf.php">http://www.example.com/asdf.php</a> should return false. How can we do this in javascript and also i want to check the content type of url. So that we can say whether the url is an image or not.</p>