In my C# winform application, I am using a webbrowser control to load some text that includes the following HTML code:
<head>
<link rel="stylesheet" type="text/css" href="d:/git/ArticleScraper/reports/default.css">
</head>
I want to extract the address of the CSS file (
d:/git/ArticleScraper/reports/default.css
) and display it in a textbox editor. The CSS file could be local or online with an absolute or relative address.
Unfortunately, I couldn't find any property or method in the webbrowser control that allows me to do this.