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.
Bookmarklet | Description | Length | Frames? |
---|---|---|---|
Alert meta | Lists all <meta> tags. | 186 | Yes |
Write meta | Lists all <meta> tags in a popup. | 246 | Yes |
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 join
ed 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' ) ); })();