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

Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Tìm hiểu thêm
Đang mở

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 đã trả lời
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

Tất cả các câu trả lời (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.

Đặt một câu hỏi

Bạn phải đăng nhập vào tài khoản của bạn để trả lời bài viết. Vui lòng bắt đầu một câu hỏi mới, nếu bạn chưa có tài khoản.