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

JavaScript explains the encapsulation and use of slow-motion animation

Implementing process analysis (1) How to call rep...

CSS method of clearing float and BFC

BFC BFC: Block Formatting Context BFC layout rule...

CSS imitates Apple's smooth switch button effect

Table of contents 1. Code analysis 2. Source code...

Linux kernel device driver kernel linked list usage notes

/******************** * Application of linked lis...

Summary of web designers' experience and skills in learning web design

As the company's influence grows and its prod...

Vue encapsulates the public function method of exporting Excel data

vue+element UI encapsulates a public function to ...

js to achieve the pop-up effect

This article example shares the specific code of ...

What is the file mysql-bin.000001 in mysql? Can it be deleted?

After installing MySQL using ports, I found that ...

vue+rem custom carousel effect

The implementation of custom carousel chart using...

Document Object Model (DOM) in JavaScript

Table of contents 1. What is DOM 2. Select elemen...

JS operation object array to achieve add, delete, modify and query example code

1. Introduction Recently, I helped a friend to ma...

Detailed explanation of Django+Vue+Docker to build an interface testing platform

1. Two words at the beginning Hello everyone, my ...

Docker deploys nginx and mounts folders and file operations

During this period of time, I was studying docker...

Solution to the problem of mysql master-slave switch canal

After configuring VIP, the error message that app...

Introduction to Jenkins and how to deploy Jenkins with Docker

1. Related concepts 1.1 Jenkins Concepts: Jenkins...