With the help of Alvaro Montoro: Here is my Javascript function:
function imageloadingdown() {
var url = window.location.href;
var hiddenIFrameId = 'hiddenDownloader';
var iframe = document.getElementById(hiddenIFrameId);
if (iframe === null) {
iframe = document.createElement('iframe');
iframe.id = hiddenIFrameId;
iframe.style.display = 'none';
document.body.appendChild(iframe);
}
iframe.src = url;
}
Here is my Html code:
<table>
<tr data-report_id="5">
<td>
<iframe id="hiddenDownloader"/>
<td>
</tr>
</table>
Now i have no server side code:
Here is the Output:
It appends the output in the current page,but i want to download it like google chrome does,as shown in figure below.Kindly help me out.