Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Netzwerke (https://www.delphipraxis.net/14-netzwerke/)
-   -   Delphi Aktuelle URL vom TWebBrowser (https://www.delphipraxis.net/25368-aktuelle-url-vom-twebbrowser.html)

daniel8520 5. Jul 2004 15:28


Aktuelle URL vom TWebBrowser
 
Hallo,

wie bekommt die aktuelle URL vom TWebBrowser raus, also die Adresse, von dem was gerade angezeigt wird.

thx im Voraus

Neuni 5. Jul 2004 15:33

Re: Aktuelle URL vom TWebBrowser
 
Code:
Webbrowser1.OleObject.Document.Url

patrickhessman 2. Apr 2006 20:11

Re: Aktuelle URL vom TWebBrowser
 
Hi @ All
Kann man nicht einfach
Delphi-Quellcode:
var s: String;
s := WebBrowser1.LocationUrl;
benutzen? Wo ist der Unterschied?

Grüße,
Patrick

PS: Sry für die 2 Jahre verspätung :P

toms 2. Apr 2006 20:35

Re: Aktuelle URL vom TWebBrowser
 
Hallo

WebBrowser1.LocationUrl und Webbrowser1.OleObject.Document.Url geben das gleiche zurueck.
Unterschied: LocationUrl ist ReadOnly, Url hingegehn nicht.
D.h man kann dem Document.Url eine URL zuweisen.
Ist z.B nuetzlich, wenn nur ein Frame geaendert werden soll:
Delphi-Quellcode:
WebBrowser1.OleObject.Document.Frames.item('bottomFrame').Document.URl := 'http://www.google.ch';


Alle Zeitangaben in WEZ +1. Es ist jetzt 14:53 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz