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?
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