Title: How to set/get the background color of a page in TWebbrowser
//You need a TWebbrowser and 3 TButtons
// First load a page
procedure TForm1.Button1Click(Sender: TObject);
begin
WebBrowser1.Navigate('www.SwissDelphiCenter.com');
end;
// Show the background color
procedure TForm1.Button2Click(Sender: TObject);
begin
ShowMessage(WebBrowser1.OleObject.Document.bgColor);
end;
// Set the background color
procedure TForm1.Button3Click(Sender: TObject);
begin
WebBrowser1.OleObject.Document.bgColor := '#000000';
end;