Is it possible to extract the value of a variable used in java script in a web page. I need to get the url stored in javascript function in a web page. In web page the function is called using <a href,
when we click on that hyperlink , java script function is called and the url is returned.
Below is the code,
<a class="dld" OnClick="download_file();" href="javascript:"> </a>
The script function is
function download_file() {
var summaryFlag = 0;
if(document.getElementById("frmincludefile").checked){
summaryFlag=1; }
url = '/filedatabase/file_process_request.html?mru=53616c7465645f5f3f24b8f4a86301eb202e67fbb679df4356e24fee9d7a17a099010eb5acf5985c&type=doc';
url += '&sum='+summaryFlag+'&logo=0&xcode=xtritiuminx&serve_txt=0&folderid=';
document.location = url;
}
How can i get value of url variable.