Onclick javascript function need to perform two actions.
- download a file with window.location.href = url
document.getElementById('test').submit();
I am not able to implement both. If the submit function is added, download is not working. Any thoughts on how to achieve both. Thanks.