a new window or a new tab is controlled by user preference, and you cannot override this. But to open the url in a new tab / window, you have to use
window.open('ftp://xyz.org/file.zip');
to request it without opening only a new window
window.location = 'ftp://xyz.org/file.zip';
Jamiec
source share