Code: Select all
void mywxHtmlWindow::OnLinkClicked( const wxHtmlLinkInfo& link )
{
...
link.GetHref();
...
}
Code: Select all
void OnLinkClicked( wxWebViewEvent& evt )
{
...
evt.GetURL();
...
}
Update 1:
I have set the page source in both cases like below:
mBrowser->SetPage( currentPage_, wxString() );
and all tags in the page source are something like this:
<a href="myURL">clickHere</a>
and I want to get myURL string when I click on the link.
Update 2:
myURL could be any arbitrary string like a hash (e.g. myURL="git-c2b617b1ec4bbaba2201020ec946b037f5935b77").
It's not a usual URL like "http://www.google.com".