4umi.com/web/bookmarklet/meta

Alert meta

Page Bookmarklet

This bookmarklet will alert all meta tag names and contents. When in frames, the elements of the topmost document will be reported. Meta tags often say as much about a page as they do about its author.

BookmarkletDescriptionLengthFrames?
Alert metaLists all <meta> tags.186Yes
Write metaLists all <meta> tags in a popup.246Yes

The code

The content of the href attribute of the first bookmarklet link has been reproduced with added whitespace. It features an anonymous function which loops through all meta tags and builds a quick array s that is joined together to a string only when it is time to report back.

javascript:(function() {
 var a = window.document.getElementsByTagName( 'meta' ), i = a.length, s = [];
 while( i-- ) {
  s[i] = ( a[i].name || a[i].httpEquiv ) + ':\t' + a[i].content;
 }
 window.alert( s.join( '\n' ) );
})();