Server Error : File does not exist while opening a database using javascript

Can anyone help…please!

I’m opening a database using javascript :

obj.href = URL(notes://…)

I get “Server error:file does not exist”

I want to change the server name in the URL for the database when the above error occurs so that the database gets open on the other server.

Please assist!

thanks