var cursor;
function CursorText()
{
if (cursor)
return "<" + cursor.nodeName + ">";
else
return "(null)";
}
function ToBeetle()
{
cursor = document.getElementById('beetle');
dump('cursor = ' + CursorText() + '\n');
}
function ToPrev()
{
cursor = cursor.previousSibling;
dump('cursor = ' + CursorText() + '\n');
}
function ToNext()
{
cursor = cursor.nextSibling;
dump('cursor = ' + CursorText() + '\n');
}
function ToParent()
{
cursor = cursor.parentNode;
dump('cursor = ' + CursorText() + '\n');
}
function ToFirstChild()
{
cursor = cursor.firstChild;
dump('cursor = ' + CursorText() + '\n');
}
function ToLastChild()
{
cursor = cursor.lastChild;
dump('cursor = ' + CursorText() + '\n');
}
Name
URL
Bookmarks
XUL Child #1 (Beetle)
XUL Child #1.1
XUL Child #1.2
XUL Child #2