Sometimes you need to use links, but you don't need to link. You just need to handle the onclick event. But it is written like this <a href="#" onclick="gettext()">click</a> When you click the two words "click", the page will jump. How can I prevent the page from jumping? Method 1: <a href="###" onclick="gettext()">Click</a> Method 2: <a href="javascript::" onclick="gettext()">Click</a> Method 3: <a href="javascript:void(0);" onclick="gettext()">Click</a> |
<<: MYSQL METADATA LOCK (MDL LOCK) theory and lock type test
>>: Teach you how to use docker-maven-plugin to automate deployment
Table of contents MySQL query tree structure 1. A...
Ansible is a new automated operation and maintena...
Friends who are learning HTML, CSS and JS front-e...
background If the catalina.out log file generated...
Table of contents Understanding Prototypes Unders...
1. Conclusion Syntax: limit offset, rows Conclusi...
1. Key points for early planning of VMware vSpher...
Preface Using Docker and VS Code can optimize the...
Table of contents question: 1. Enable remote logi...
Table of contents Rendering Install Code Implemen...
Recently, I have a need to list all host names in...
Currently, almost all large websites and applicat...
Table of contents 1. Basics 1.ref 2. toRef 3. toR...
Table of contents Overview Blob Blob in Action Bl...
Check if MySQL is already installed in Linux sudo...