One of the attributes I somehow missed with the HTML5 revolution was the
ping attribute; Other attributes were more popular,
download being one of them. Hell, I just stumbled upon the
ping attribute while reading an old forum post. The
ping attribute of an
a element represents a list of URLs to POST to when the link is clicked.
A sample usage of the
ping attribute would look as follows:
<a href="/checkout" ping="/tracking/going-to-cart">Checkout</a>
I tried writing the POST data to file but the PHP
Have you used the
ping attribute before? If so please let me know what you used it for!
One event that's always been lacking within the document is a signal for when the user is looking at a given tab, or another tab. When does the user switch off our site to look at something else? When do they come back?
If you troll page markup like me, you've no doubt seen the use of data URI's within image src attributes. Instead of providing a traditional address to the image, the image file data is base64-encoded and stuffed within the src attribute. Doing so saves...