我想请问一下有没有api函数可以获得网页的title?
解决方案 »
- access 倒入txt 在从txt倒入server
- 急,轉pdf文件的問題
- 关于ASCII码,十六进制,字符,整数之间的转换问题
- _________大家探讨一下 <窗体(单元)间变量共享访问的问题> 你认为比较好的方法___________
- 推荐几本学delphi的好书
- 请问哪里有有关主要控件(如:BDE、ADO、Data Access等面板)主要属性和方法介绍???
- RichEdit1中有font,selattributes和defattributes是否多余?
- 如何打开动态连接库?
- 怎样得到目前节点的父节点的treenode
- 各位水友,帮帮忙修改考勤软件说明部分
- webservice服务器端使用控件就报错?
- BBS 如何实现分页显示(up有分)
ShellWindow: IShellWindows;
vi: OleVariant;
spDisp: IDispatch;
IDoc1: IHTMLDocument2;
i: integer;
nCount: integer;
IE1: IWebBrowser2;
begin
ShellWindow := CoShellWindows.Create;
nCount := ShellWindow.Count;
for i := 0 to nCount-1 do
begin
vi := i;
spDisp := ShellWindow.Item(vi);
spDisp.QueryInterface( iWebBrowser2, IE1);
if IE1 <> nil then
begin
memo1.Lines.Add(inttostr(IE1.Height)+','+inttostr(IE1.Width));
Memo1.lines.Add(IE1.LocationURL);
IE1.Document.QueryInterface(IHTMLDocument2,iDoc1);
if iDoc1 <> nil then
begin
memo1.Lines.Add(IDoc1.title);
end;
end;
end;
end;这个可以得到当前系统中所有IE窗口的属性
包括当前访问网页的URL,TITLE,还有IE窗口的大小~~你看是你需要的吗?