I want to create a table of contents(toc) on the top of my browser output and each of my content in toc in linked with a javascript function. I want that when i click over the content its linked function is called and output is displayed below toc.

Description : I want a table row at top of my browser output in which each cell of row has contents of table which are linked to a javacscript function. When i click over contents of table i want their output to be displayed at bottom of same window below table of content row.