Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/schalkneethling/using-ping-attribute

A simple demo using the ping attribute on an anchor element
https://github.com/schalkneethling/using-ping-attribute

Last synced: 6 days ago
JSON representation

A simple demo using the ping attribute on an anchor element

Awesome Lists containing this project

README

        

# Using the `ping` attribute

A simple sample application demonstrating the use of the `ping` attribute on an anchor element.

- [The ping attribute specification](https://html.spec.whatwg.org/#ping)

## Running the app

Ensure that you have [Git](https://git-scm.com/), [Nodejs](https://nodejs.org/) and [Yarn](https://yarnpkg.com/)([npm](https://www.npmjs.com/get-npm) will also work) installed on your computer.

1. Clone this project locally.
2. Run `yarn` at the root of the project
3. Run `yarn start`
4. Open `http://localhost:3000` and click the link

You should see the `console.log` statements from `routes/router.js` output to the terminal.

> NOTE: If testing in Firefox, there is a flag that needs to be set for this to work. [See the details on MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#browser_compatibility).