When attempting to implement a download functionality in a normal HTML page, the code provided below successfully starts the download in a separate window. However, when using the same code within a bootstrap modal form, it does not work. What other steps do I need to take to achieve the same functionality within a bootstrap modal?
var newwin=window.open("",'newwindow','width=700,height=700, left=100,top=100,resizable=yes','_blank').document;
var link =newwin.createElement('a');
link.href = window.URL.createObjectURL(blob);
link.download = fileName;
link.click();