Suppose, I\'ve a FTP URL (ftp://xyz.org/file.zip). If I type this in the browser manually, then hit enter, the browser will start to download the file.zip
ftp://xyz.org/file.zip
file.zip
new window or new tab is controlled by the user's preference, and you can't override that. But to open your URL in a new tab/window you would use
window.open('ftp://xyz.org/file.zip');
to request it without opening a new window just
window.location = 'ftp://xyz.org/file.zip';