Neocities.org

Onio Café

onio.cafe

265,509 views
93 followers
2,355 updates
0 tips
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
onio 1 day ago

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.

zerock 1 day ago

I feel like your navigation menu is a pretty critical thing to require JS for. I wouldn't do it personally.

1 like
chattable 1 day ago

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!

1 like
onio 1 day ago

Thank you for the input, @zerock. I'll avoid JS for the menu. @chattable - it works! Thank you for the tip!!

Website Stats

Last updated 2 hours ago
CreatedJan 1, 2023
Site Traffic Stats

Tags

art photography chat interactive