How to get the right URL before navigating the web page in the CHtmlView?
-
How to get the right URL before navigating the web page in the CHtmlView? Class CHTMLControl derived from CHtmlView, and over load the virtual function OnBeforeNavigate2. I Navigate an URL as following: CHTMLControl* pHTMLControl; … pHTMLControl->Navigate2(strURL); In the opened web page, there is a link whose html code is below: Free Search After clicking on this link in the html view, the following function is called void CHTMLControl::OnBeforeNavigate2(LPCTSTR lpszURL, DWORD nFlags, LPCTSTR lpszTargetFrameName, CByteArray& baPostedData, LPCTSTR lpszHeaders, BOOL* pbCancel) But in this function, the value of lpszURL is "javascriptclickProcess("search");" How can I get the right URL of the next page before navigating it? Thanks
-
How to get the right URL before navigating the web page in the CHtmlView? Class CHTMLControl derived from CHtmlView, and over load the virtual function OnBeforeNavigate2. I Navigate an URL as following: CHTMLControl* pHTMLControl; … pHTMLControl->Navigate2(strURL); In the opened web page, there is a link whose html code is below: Free Search After clicking on this link in the html view, the following function is called void CHTMLControl::OnBeforeNavigate2(LPCTSTR lpszURL, DWORD nFlags, LPCTSTR lpszTargetFrameName, CByteArray& baPostedData, LPCTSTR lpszHeaders, BOOL* pbCancel) But in this function, the value of lpszURL is "javascriptclickProcess("search");" How can I get the right URL of the next page before navigating it? Thanks
superhandwolf wrote:
How can I get the right URL of the next page before navigating it?
Put the right URL in the link?