Это ссылка, которую я хочу получить:
https://siva-ph.jobstreet.com/applications/viewResumePrint.asp?JID=021601290966635348|9129810&CID=480580200035879516|{1408B8D6-C888-11E8-B487-005056A239D4}&AID=405202684079769818|413453608
А это ссылка:
<a href="" onclick="javascript: Print("summary","496612287108992250|413453608", 0);return false;">Magsino,<br> Mike Ferdinand</a>
И это функция, которая находится в другом файле:
function Print(which,param,num) {
if (which=="resume") {
window.open("resumePrinterFrame.asp?AID=" + strAID + "&JID=" + strJID + "&AdvID=" + strAdvID + "&Sought=" + strSGH + "&Spe=" + strSpe + "&ASC=" + strASC + "&st=" + strTab + "&SRC=" + strSRC, "", "width=200,height=100,status=no,scrollbars=no,resizable=yes,status=no, location=no");
return false;
}
else if (which == "Retrieve_Candidate_Info_App") {
var qs = "JID=" + JIDArray[num] + "&ASC=0&QID=&QID2=&Sort=&SRC=sa&SubF=&PF=" + PFArray[num] + "&JGID=0&Rank=&AdvID=" + AdvIDArray[num] + "&Sought=&Spe=";
window.open("../applications/viewResumePrint.asp?JID=" + JIDArray[num] + "&CID=" + CIDArray[num] + "&AID=" + param + "&ASC=0&SubF=&AdvID=" + AdvIDArray[num] + "&Title=" + PosArray[num] + "&SRC=sa&SUMM=1&Name=" + nameArray[num] + "&JGID=0&Sought=&Spe=&pcid=&Return=" + escape("viewJobFolder.asp?" + qs + "&MTR=&Rank=" + param), "", "toolbar=0,location=0,directories=0,menubar=1,scrollbars=1,resizable=1,width=1020,height=550");
}
else {
var qs = "JID=" + strJID + "&ASC=" + strASC + "&QID=" + strQID + "&QID2=" + strQID2 + "&Sort=" + strSort + "&SRC=" + strSRC + "&SubF=" + strSubF + "&PF=" + strPF + "&JGID=" + strJGID + "&Rank=" + strRank + "&AdvID=" + strAdvID + "&Sought=" + strSGH + "&Spe=" + strSpe;
window.open("viewResumePrint.asp?JID=" + strJID + "&CID=" + CIDArray[num] + "&AID=" + param + "&ASC=" + strASC + "&SubF=" + strSubF + "&AdvID=" + strAdvID + "&Title=" + strPos + "&SRC=" + strSRC + "&SUMM=1&Name=" + nameArray[num] + "&JGID=" + strJGID + "&Sought=" + strSGH + "&Spe=" + strSpe + "&pcid=" + strParsedCodeId + "&Return=" + escape("viewJobFolder.asp?" + qs + "&MTR=" + strMTR + "&Rank=" + param), "", "toolbar=0,location=0,directories=0,menubar=1,scrollbars=1,resizable=1,width=1020,height=550");
// window.parent.location.href="viewJobFolderFrame.asp?JID=" + strJID + "&CID=" + CIDArray[num] + "&AID=" + param + "&ASC=" + strASC + "&SubF=" + strSubF + "&AdvID=" + strAdvID + "&Title=" + strPos + "&SRC=" + strSRC + "&SUMM=1&Name=" + nameArray[num] + "&QID=" + strQID + "&QID2=" + strQID2 + "&Rank=" + strRank + "&PF=" + strPF + "&JGID=" + strJGID + "&MTR=" + strMTR;
return false;
}
}