New course! Every coder should learn Generative AI!
Try a free lesson+ 1
if I type address of any mp3 file from my PC in hyperlink tag, will it start downloading on clicking on it ?
2 Answers
+ 7
It depends on how your browser is configured. If you are using Firefox, you can go to Tools > Options > Applications to change the default behavior for a specified file type. Otherwise, to download a file from a link, you can always do right-click > save target as.
Of course, files from your PC are only accessible from your html file if this one is on your PC too. If you are using Code Playground for example, it won't have access to the file, as SoloLearn can't access your PC.
- 1
try to find out yourself by doing it