I learned a new trick today. I didn’t know it before because I have done too little... Objective: Click on the link to pop up a file download dialog box Code: Copy code The code is as follows:<html> <head>Code Download</head> <title>Code Download</title> <body> <a href="Web.rar" >download</a> </body> </html> If the browser supports a format that can be opened, it will open it directly online by default (such as word or pictures). If it does not support the format, it will pop up a download prompt. It is best to make it into a .rar file |
>>: How to automatically back up the mysql database regularly
Table of contents Preface 1. Preview of office do...
Use JS timer to make an element to make a method ...
Table of contents A murder caused by ERR 1067 The...
Payment countdown to return to the home page case...
The before/after pseudo-class is equivalent to in...
Since the problem occurred rather suddenly and th...
Go is an open source programming language that ma...
For example, users who need screen reading softwar...
The methods of installing nginx and multiple tomc...
Tetris is a very classic little game, and I also ...
Table of contents introduction Install Homebrew I...
The purpose of setting up MySQL query cache is: C...
Table of contents ESLint plugin installation in H...
If you want the entire interface to have a backgr...
The bash history command in Linux system helps to...