Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

152
Visualizações
Is there a way to add code to HTML from other files?

I have a multi page website which uses the same navbar and everytime I want to change something to it I have to copy and paste everything that I have done to the other HTML files.Is there a way to have only one file where the code for the navbar is located and just import it to the other HTML files so when I change something to it, it also changes to all the other files ? (much like a React Component)

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Answer is "Yes" you can do it without React also. Look for the previous version of w3.js

see this example of how they are including

https://www.w3schools.com/howto/content.html

into another page

here is the existing working sample

https://www.w3schools.com/howto/tryit.asp?filename=tryhow_html_include_2

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda