Add HTML text in TWebBrowser

xiaoxiao2021-03-06  62

uses MSHTML; procedure TForm1.Button1Click (Sender: TObject); begin Webbrowser1.Navigate ( 'www.baidu.com'); // end start page of a site; procedure TForm1.Button2Click (Sender: TObject); var Range: IHTMLTxtRange Begin Range: = (WebBrowser1.document As Ihtmldocument2) .Body as htmlbodyElement) .CreateTextRange; Range.collapse (false); Range.Pastehtml ('
Hello, I am Lao Li, 9CBS ID LAOLI '); // Add what you want to add;

转载请注明原文地址:https://www.9cbs.com/read-111515.html

New Post(0)