How do we navigate to a page with the anchor link in Web Crawler program?
Hi,
I am writing a web crawler and I am stuck again with a problem.
How do we navigate to a page with the anchor link:
Code :
<a id="dlstDepartments__ctl2_DepartmentsLink" onclick="return UpdateFrames('5');"
href="javascript:__doPostBack('dlstDepartments$_ctl2$DepartmentsLink','')">Beverages</a>
and here is the Javascript code being called:
function UpdateFrames(DID)
{
top.navbar.location.href="Aisles.aspx?ID="+DID;
location.href="IconAisles.aspx?ID="+DID;
return false;
}
function __doPostBack(eventTarget, eventArgument) {
var theform;
if (window.navigator.appName.toLowerCase().indexOf("microsoft") > -1) {
theform = document.frmPageForm;
}
else {
theform = document.forms["frmPageForm"];
}
theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}
Any help would be highly appreciated
Thanking you