How can I scan an html document for urls and connect to a selected link?