Browser compatibility for one. It seems so simple but there are some definite quirks for some browsers. I've read a few instances of IE9 going a little bonkers.
In this case, the OP isn't trying to create some application where an iframe would (naughtily) be required. Using a PHP include would make it be a 'single page', not two pages that the browser has to render independently.
I must say, I'm the type of person that breaks tradition if this no reason behind it. :) Here's a site that I did with iframe nav, everything seems to work fine.
@cnwtx, php would be better from the vantage point of site performance. An iframe requires that the page requests the external iframe (nav, template part, etc.) be loaded as an additional resource to the page, at the browser level. A php include is processed on the server and the file is served as a singular entity to the client, no additional request needed by the browser. Does that make sense?
I'm read manual about CSS. There are some CSS menu examples.
But i have question about HTML. This is test html page (like main page)
So if i want keep menu on firstpage.html, secondpage.html, thirdpage.html pages i need repeat this code there ? I must do it on all HTML pages ?
Thanks
Solve everything with Ajax!
target="_parent"on all links inside the iframe.In this case, the OP isn't trying to create some application where an iframe would (naughtily) be required. Using a PHP include would make it be a 'single page', not two pages that the browser has to render independently.