window.open() with username and password

M

mamin

I have the following problem: There's a shared folder on computer A,
and on another one computer B in local network I'm trying to execute js
code:
window.open('\\\\computer_A\\shared_folder\\').
All works properly if user of computer B is logged as user of the
domain where computer A exists. But when the user is logged in "this
computer" (not in domain), he doesn't have access rights to folder B.
Of course, writing
\\computer_A\shared_folder\
in web browser will ask me about the password and user name, but when
js script window.open() is executed it won't. So the result of
executing window.open() function is exception. Anybody knows the way to
foce window.open() to use logging form.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top