This method of the WebBrowser class retrieves a pointer to the IDispatch interface of the Active Document object.
public synchronized java.lang.Object getDocument();