The file you want to be opened by the user must be a URL in a simple anchor or if you want to use javascript, then pass a URL to window.open NOT a local file path! Something like
OnClientClick="window.open('myfiles/abc.txt');"
myfiles should be a folder at your website