Working with javascript in Wamp

What is WAMP?

WAMP is a server that is hosted on you machine it stands for  windows apache , mysql and php . There are a variety of amp stacks out there including those for Linux and Mac. I use WAMP for web development because it is free and easy to install. It is possible to install these application manual on your own but I like to make things easy for myself. I recently been having trouble with make javascript work in WAMP and I just figured out the solution. It is not pointing to the right directory.

My page for the website is in the subdirectory simple


Here are all of my files in the subdirectory.


When I click on index.html it just shows an empty page. Notice that it is pointing to the C: drive an not the local host. We will need to change the directory so it will be pointing to the host server.


In the example below I change the directory so it now points to the server localhost.


And now my program works. Yay!!!!


What is Wamp:

To download wamp:

More in depth tutorial in using Wamp: