HTMLViewer DocumentBegin

Hello,

I am trying to put the clicked on URL in a text box so I am using the DocumentBegin to report URL value. The problem is many websites apparently contain many Documents so the the URL is set many times and ends up with strange values sometimes. How do I return the URL that mouse clicked on?

This also applies to newTitle in TitleChanged.

TIA

For me it works (OSX).

leave TitleChanged empty

in DocumentBegin

Window1.title=URL

it shows the link I’ve clicked in the Window Titlebar

If AddressField.Text <> URL then AddressField.Text = URL End If

go to http://www.cnn.com after a fresh start from editor. After 89% of the page loads documentBegin is fired again and the URL changes to http://static.ak.facebook.com/connect/xd_arbiter.php?version=28#channel=f175aa704&channel_path=%2F%3Ffb_xd_fragment%23xd_sig%3Df17468d48%26&origin=http%3A%2F%2Fwww.cnn.com

After the initial CNN load, if I go to CNN again it does not fire the documentBegin twice.

No one can verify my problem?

Probably cached.

Patience is a virtue.