A brief discussion on the role of HTML empty links

A brief discussion on the role of HTML empty links

Empty link:

That is, there is no link with a target endpoint.

Format <a href="#">Display content</a>

The role of empty connection

1. Set as homepage

<a href="#"
onclick="this.style.behavior='url(#default#homepage)';this.sethomepage('https://www.jb51.net')">Set as homepage</a>

2. Add favorites

<a href="#"
onclick="javascript:window.external.addfavorite('https://www.jb51.net','Sohu')">Add to Favorites</a>

The above is all the content of the editor's brief discussion on the role of HTML empty links. I hope it will be helpful to everyone. Please support 123WORDPRESS.COM~

<<:  HTTP header information interpretation and analysis (detailed summary)

>>:  JavaScript microtasks and macrotasks explained

Recommend

Analysis of a MySQL deadlock scenario example

Preface Recently I encountered a deadlock problem...

Detailed explanation of Nginx rewrite jump application scenarios

Application scenario 1: Domain name-based redirec...

The difference between the four file extensions .html, .htm, .shtml and .shtm

Many friends who have just started to make web pag...

How to insert 10 million records into a MySQL database table in 88 seconds

The database I use is MySQL database version 5.7 ...

Detailed explanation of how to create MySql scheduled tasks in navicat

Detailed explanation of creating MySql scheduled ...

TypeScript installation and use and basic data types

The first step is to install TypeScript globally ...

How to change the website accessed by http to https in nginx

Table of contents 1. Background 2. Prerequisites ...

Detailed explanation of the underlying encapsulation of Java connection to MySQL

This article shares the Java connection MySQL und...

Example of using @media responsive CSS to adapt to various screens

Definition and Use Using @media queries, you can ...

Installation and use of Ubuntu 18.04 Server version (picture and text)

1 System Installation Steps OS Version:1804 Image...

How to implement the jQuery carousel function

This article shares the implementation code of jQ...

Summary of Common Commands for Getting Started with MySQL Database Basics

This article uses examples to describe the common...