mulangi
12-22-2005, 05:00 AM
Here is a useful bookmarklet for viewing the HTML element tree with a single click on any webpage. Tested on Firefox and MSIE.
javascript:{var showTree;if(!showTree){ var jsel=document.createElement('script'); jsel.src='http://www.hyperfaqs.org/js/tree.js'; jsel.type='text/javascript'; void(document.getElementsByTagName('HEAD')[0].appendChild(jsel));showTree=function(){void(window.setTimeout('showTree()',100))};}void(window.setT imeout('showTree()',100));}
Cut and paste the above code as a URL in your bookmarks/favorites, or go here (http://www.hyperfaqs.org/web/scripts/treeviewer/) to install.
Sorry could not post the URL directly for installing the bookmarklet; Apparently vB does not like javascript: urls.
Feedback welcome.
javascript:{var showTree;if(!showTree){ var jsel=document.createElement('script'); jsel.src='http://www.hyperfaqs.org/js/tree.js'; jsel.type='text/javascript'; void(document.getElementsByTagName('HEAD')[0].appendChild(jsel));showTree=function(){void(window.setTimeout('showTree()',100))};}void(window.setT imeout('showTree()',100));}
Cut and paste the above code as a URL in your bookmarks/favorites, or go here (http://www.hyperfaqs.org/web/scripts/treeviewer/) to install.
Sorry could not post the URL directly for installing the bookmarklet; Apparently vB does not like javascript: urls.
Feedback welcome.