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

205
Visualizações
Chrome is not running javascript

I am learning javascript and I made a webpage with news API. the problem is that when I open my index.html file with the live server in vs code is working fine but when I go to my folder and open the HTML file the javascript is not working. image of index.html in live server

this is index.html in live server vs code working perfectly

image of index.html when I open it from the folder

this is image of same file when I open it from my folder

I am new to web development, not even new I am still a student. is it not supposed to work or am I doing something wrong?

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

0

you need the development server to serve the statics files, such as images to browser. browser will request static files from the server, and loaded in browser. that is why without vscode liveserver, you do not see images.

about 4 years ago · Juan Pablo Isaza Relatório

0

You are required to serve the files. use a tool like MAMP for that.

After startup you have to change the Webserver to the folder containing your index.html (Documentation)

If you are using a more complex framework additional steps can be required.

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