How can I parse content of entered URL?
<p>I need to parse content type of typed URL:</p>

<ol>
<li>if it's an image then do something.</li>
<li>if it's a web page then scan this page for images and fill array with images' SRC attributes (and order it by size).</li>
</ol>

<p>How can i do this using only JS?
How can i do this using only ASP.NET and C#?</p>
