Главная страница | назад





Article #17909: Launching your default browser on a URL.

 Question and Answer Database
FAQ2909D.txt Launching your default browser on a URL.
Category :Windows API
Platform :All
Product :All 32 bit
Question:
How do I start up and pass an URL to the default browser?
Answer:
Use the ShellAPI function ShellExecute.
Example:
uses ShellAPI;
procedure TForm1.Button1Click(Sender: TObject);
begin
ShellExecute(Form1.Handle,
nil,
'http://www.borland.com',
nil,
nil,
SW_SHOWNORMAL);
end;
7/16/98 4:31:28 PM

Last Modified: 01-SEP-99