Use Fancytree as a navigation menu.
The tree initialization uses <a href='URL', target='TARGET'>title</a>
tags.
The activate
handler then uses node.data.href
to open the the pages in the embedded iframe.
Note that the navigation will fallback to standard HTML links,
when JavaScript is disabled.
A focused node will automatically be activated after 2 seconds (use the
keyboard to try this out).
The Toggle tree button in the embedded welcome page also gives
an example on how to access a tree that exists outside the own frame.
|
Fancytree project home Link to this page Example Browser View source code