• Skullgrid@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      20 hours ago

      I mean, I can do fucking anything with Javascript, but the point is

      1. what’s the minimal effort I can use to just replace <?php include menu.php>
      2. What about people like @KernelTale@programming.dev who have JS off? I should be able to do some kind of replacement using just HTML or something that doesn’t use Iframes or whatever.

      I’m sure there are just right solutions to this, but I’m too busy with a shitload of other things I have to keep on top of.

      • fodor@lemmy.zip
        link
        fedilink
        arrow-up
        1
        ·
        13 hours ago

        Hey, no need to use JS, but if all you want is a menu, here’s how I do it. As easy as PHP.

        <body><script src="header.js"></script>