I have a form where you may press a button which will give you a PDF of the current information on the form. This is done by setting
window.location.href to the link to the pdf file.
After i do this, none of the javascript works on the page because all form elements have value of undefined.
The weird part is that the browser stays on the current page, but shows the download window.
is there a workaround for this?