You must acquire the correct interface to call the method.
This should work, but should access the website at the correct handler, like OnDocumentComplete.
Look like here is some
helping code to understand the Document and the access to its content. (I didnt find anything better)