I'm trying to use iframe to create a menu for a bunch of pages - only
I'd like the menu to change slightly (a highlight) depending on what
page it's being displayed in.
<iframe name="menu" src="menu.html" >
I think I can use javascript to change the name attribute of the
iframe, and then have menu.html display that info.
so lets say bali.html loads the iframe with menu.html. I'd then like
bali.html to change the name attribute of the iframe to "bali", and
then have menu display something slightly different on that basis. The
last part I can do, but I can't find anything that tells me how to
change the name attribute of the iframe. Can anyone help with this?
Thanks
Michael
I'd like the menu to change slightly (a highlight) depending on what
page it's being displayed in.
<iframe name="menu" src="menu.html" >
I think I can use javascript to change the name attribute of the
iframe, and then have menu.html display that info.
so lets say bali.html loads the iframe with menu.html. I'd then like
bali.html to change the name attribute of the iframe to "bali", and
then have menu display something slightly different on that basis. The
last part I can do, but I can't find anything that tells me how to
change the name attribute of the iframe. Can anyone help with this?
Thanks
Michael
Comment