Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

Поиск в поддержке

Избегайте мошенников, выдающих себя за службу поддержки. Мы никогда не попросим вас позвонить, отправить текстовое сообщение или поделиться личной информацией. Сообщайте о подозрительной активности, используя функцию «Пожаловаться».

Подробнее
Открыта

I am writing a local HTML file as a catalogue for a drive. I want to make the file names clickable but the file:/// href is blocked. Is there a work around

jbr отвечено
Writeski

I'm using a HTML file as a hypertext that catalogues a hard drive or folder. I want the file names to be clickable--to open the file, but but the file:/// href is blocked. What is the work around. All of this is local

I'm using a HTML file as a hypertext that catalogues a hard drive or folder. I want the file names to be clickable--to open the file, but but the file:/// href is blocked. What is the work around. All of this is local

Все ответы (2)

Firefox blocks file:// links from websites (including local HTML files) as a critical security measure.

You can make your file clickable by

1. install a Firefox extension, for example, Local Filesystem Links file:/// will find you file 2. start a local server, for example open a terminal, go to your file folder, run python3 -m http.server 8000 http://localhost:8000/your-file.html will be your file, not file://

Don't use full absolute paths. Only link relative to the document e.g. "./subfolder/file.ext" or "../../higher/index.ext" — and that should keep working.

Задать вопрос

Для ответа на сообщения вы должны войти в свою учётную запись. Пожалуйста, задайте новый вопрос, если у вас ещё нет учётной записи.