Sunday, 15 September 2013

html - Showing complete frameset from child frame -



html - Showing complete frameset from child frame -

i have simple frameset definition this:

<frameset cols="280,*"> <frame name="toc" src="toc.html"> <frame name="main" src="main.html"> </frameset>

the left frame contains table of contents of document, right frame actual pages. people link straight individual pages of document shown in "main" frame. problem direct links pages shown in "main" frame browser open them without frameset because individual pages don't contain frame definitions. however, confusing reader because she/he needs table of contents frame in order navigate through document.

so i'd solve problem via 1 of next approaches:

1) if user links straight page displayed in "main" frame, browser should automatically set finish frameset. possible somehow? if not, please see approach number 2.

2) add together "show toc" button end of every page. button point html page sets frameset, putting current page in "main" frame. problem need dozens of dummy html pages because i'd need 1 every single page because "src" html "main" frame different page page. or there easier solution that?

thanks suggestions!

html frames

No comments:

Post a Comment