I’m trying to make a HTML page (lets say index.html) that will have a dynamic drop down menu. What i want to do is to keep my dropdown menu in a seperate html file(menu.html) so that it will be easier to maintian. What i want to know is that how to load the menu.html file within the index.html file?
I have tried with some frame examples but the menu.html file which contains the DD menu doesnot appear in the index page.
Like for example, I have tried with this in my index page but nothing appears:
<frameset rows="200,*" frameborder="0" border="0" framespacing="0">
<frame src="menu.html" marginheight="0" marginwidth="0" scrolling="auto" noresize>
If you want to stay in HTML, uses :
<iframe src="menu.html" width=400 height=200></iframe>with the width and height you want.
But the best is to use PHP by including the file like this :
<?phpinclude('menu.html');
?>
But it is your choice at the end.