The current page getting blank whenever i download pdf file in vf page.Here is my code:
This is the UI code:
<button aria-live="assertive"
class="slds-button slds-button--neutral slds-not-selected"
id="pdfView">Export as PDF</button>
javascript function:
$('#pdfView').click
(
function()
{
var param = 'apex/Invention_Disclosure_PDF?id='+getParameterByName("id");
redirectToURL(param);
}
);
Current page is getting blank and then pdf file is downloading,how to avoid this