Home

Show NOFRAMES

Source code for bookmarklet Show NOFRAMES.



javascript:
(function(){
        var h = document.documentElement.getElementsByTagName( "HEAD" )[0];
        var c = document.documentElement.getElementsByTagName( "NOFRAMES" )[0];
        if ( c == null ) {
            alert("Document has no NOFRAMES section");
            return;
        }
        var bod = c.innerHTML;
        bod = bod.replace( /&amp;lt;/g, "<" );
        bod = bod.replace( /&amp;gt;/g, ">" );
        bod = bod.replace( /&amp;amp;/g, "&" );

        var head = h.innerHTML;

        var w = window.open();
        w.document.write( head );
        w.document.write( bod );
        w.document.close();
}());