Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8625851
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T07:52:42+00:00 2026-06-12T07:52:42+00:00

Background: My current working environment involves many navigation links that constantly updates, but the

  • 0

Background:
My current working environment involves many navigation links that constantly updates, but the system admin will not allow PHP (or any dynamic server). This is frustrating.

Question:
Is there a way to implement a class-like structure for HTML using JS to have a makeshift PHP method “include” in my HTML?

Example:
For instance, I really appreciate how in PHP I can modularize the navigation links on the top of my website to a file called navbar.php and then include it to all my separate pages. Once a change has been made to the navbar.php, all the other pages will reflect the changes. Unfortunately, my workflow forces me to update all the webpages in a menial fashion. Is it possible to use JS?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T07:52:44+00:00Added an answer on June 12, 2026 at 7:52 am

    Use a js file that dynamically creates nav bar on page load and place it in all pages, you can also check which page it is using documnet.location and highlight and all. One change in this file and all pages change

    But this will be against graceful degradation, if JavaScript is disabled!!! your site is without any main navigation menu.
    You will have to find a work around. Create a basic pure html navigation bar, that contains your consistent links.
    Include a js file that replaces this with a better bar, like said above.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Background: I will be working on tools that will be dependent on a rapidly
I'm developing a navigation app which can run in the background. That's working fine
I've read that the C# version is as follows: Application.Current.Dispatcher.Invoke( DispatcherPriority.Background, new Action(delegate {
I'm currently working with a textbox that has a background. I was wondering if
I'm working on a project with a navigation that is animated. (Joomla working in
Possible Duplicate: highlight the navigation menu for the current page I'm working on a
Background : In the current project I am working on, I have created a
I am currently working on an app that allows for free-drawing. The current method
I want to find out current location when the Application is running in background
I want to fix the Background while only the ListFields scrolls. Current Problem: Scrolling

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.