Hmmm.. to JavaScript my menu or not? For the sake of efficiency, I've been trying to figure out how separate my website's menu from the rest of the layout (so that I only have to update one file when I want to edit my menu) and then reintegrate the menu into my layout with code. I tried iFrames, and it looked good (!) BUT I don't know how to get around the iFrame that contains the menu opening a new webpage within
the iFrame, LOL. So I'm trying out JavaScript to reintegrate the menu on my Links page, and it works?? But it doesn't load at the same pace as the rest of my page, which makes sense, but feels quirky and less seamless. I also have to wonder what percentage of netizens have JavaScript blocked.
Hi! If you decide to use iframes (which are javascriptless) you can add target="_top" on each <a> tag inside your embedded document. This will make the link open at the top of the page and not inside the iframe. I hope this helps!
the iFrame, LOL. So I'm trying out JavaScript to reintegrate the menu on my Links page, and it works?? But it doesn't load at the same pace as the rest of my page, which makes sense, but feels quirky and less seamless. I also have to wonder what percentage of netizens have JavaScript blocked.
I feel like your navigation menu is a pretty critical thing to require JS for. I wouldn't do it personally.
Hi! If you decide to use iframes (which are javascriptless) you can add target="_top" on each <a> tag inside your embedded document. This will make the link open at the top of the page and not inside the iframe. I hope this helps!
Thank you for the input, @zerock. I'll avoid JS for the menu. @chattable - it works! Thank you for the tip!!