mshtml.HTMLDocumentClass iDoc = (mshtml.HTMLDocumentClass)this.axWebBrowser1.Document; object iDisp = iDoc.Script; // get the script object Type tp = iDisp.GetType(); // get its type string theKey = getKeyFromBody(iDoc.documentElement.innerHTML.ToString());