Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

206
Views
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 answers
Answer question

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 Report

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!