It is even possible to do it, but in the most current browsers you get a confirmation screen stating that it may be a possible fraud.
Follow the passage:
var username = 'user';
var password = 'pass';
var server = 'toSomeServer';
window.open("ftp://" + username + ":" +
password + "@" + server, '_blank',
'toolbar=no,location=no,status=no,' +
'scrollbars=auto,copyhistory=no,menubar=no,width='
+ ((screen.AvailWidth/2)-12) + ',height='
+ (screen.AvailHeight-124) +',left=' + ((screen.AvailWidth/2))
+ '),top=0,resizable=yes');
I don’t think that’s the most elegant solution to this.
One good alternative would be you treat that in serverside.
On the website of Wc3 has an example connection with PHP.
I hope I’ve helped.
Put a LINK like this: www.dominio.com.br/folder/file.rar
– Diego Souza
Diego thanks for the more attention this way did not work
– Alexandre Paulino
Without having a way to see the data is impossible, there is no way to access the FTP without the address, and in case it needs user and password these will have to be somewhere that however much you try to hide will have to be used by the browser to download the file, so can be discovered.
– Leandro Godoy Rosa