Retrieve Title From Browser

I would like to retrieve the title of the current web page (IE)from within my Delphi application.

What VCL should I use to acomplish this.

Thanks,
Arch
abrooksAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

intheCommented:
hi,
you can do this:

procedure TForm1.Button1Click(Sender: TObject);
Var
 Explorer : HWND;
 CaptionText : array[0..255]of Char;
begin
 Explorer := FindWindow('IEFrame', nil);
 If Explorer <> 0 Then Begin
 GetWindowText(Explorer,CaptionText,255);
 Label1.caption:='Internet Explorers Caption is :  '+ string(CaptionText);
 end;
 end;


Regards Barry
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
abrooksAuthor Commented:
What is the netscape equivalent please?
0
intheCommented:
sorry i dunno as i dont use netscape,you just need to find the main netscape windows classname.
use winsight(comes with some versions of delphi ) or search on net for a program called sinfo ,this also tells classnames and replace the clasname ieframe to what ever netscapes is..
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.