July 28, 201214 yr Using XHTML, what's the easiest way to get a navigation bar to remain on the index page after clicking one of its links? I'm thinking frames but is there an alternative way to achieve a menu that doesn't open its links in the same window (because this means that the menu disappears) In HTML I would use the following (if I wanted the links to open in a iframe): <iframe src="page1.html" id="frame1"></iframe> <p><a href="http://www.w3schools.com" target="frame1">W3Schools.com</a></p> "target" is invalid in XHTML. How can I modify the above code so that it works and validates in XHTML?
July 28, 201214 yr Does it need to be the same menu staying on the same page? Can't you just have the same menu coded in to those different pages? If you use includes, such as PHP Includes, you can repeat the same menu across many different pages using the same small bit of code. Because the user already has that bit of code in their cache (from their first visit) it will load instantaneously, almost like it's the exact same page.
Create an account or sign in to comment