Firefox 2.0 implements

According to Bugzilla, Firefox Trunk (which will become Firefox 2.0) has implemented the ping attribute for the <a> tag from Web Applications 1.0 or HTML 5.

This should allow someone to do the following:

<a href="" ping="">click me!</a>

When a user clicks on the hyperlink, they will be taken to Google but a request will also be made to in the background.

This new attribute can have several good uses. Advertisers can track the popularity of an advert without obscuring the destination URL. You can also track the popularity of outgoing URLs. This can allow you to adjust your webpage, for example making more visited links larger or more prominent.

The Web Applications 1.0 specification says:

When the ping attribute is present, user agents should clearly indicate to the user that following the hyperlink will also cause secondary requests to be sent in the background, possibly including listing the actual target URIs. 

Firefox 2.0 plans to do this by displaying URLs which will be pinged in the status bar.

As for privacy, websites can already track which links you click on either by redirecting you through another URL or by using some Javascript magic like Google does. The addition of the ping attribute should allow webmasters to track where their visitors go without ugly hacks and redirection pages. 

Leave a Reply

Your email address will not be published. Required fields are marked *