I think a good way to start on programming is to make projects that you're interested in or want to build as a self-challenge, depending on your knowledge level. First start with the basic programming logic, and soon you'll catch yourself thinking "hmm, I could do 'this' with what I just learned". Making simple things with javascript and a browser is a good start, and in no time you will be able to make simple games and web pages.
As you progress, always try to challenge yourself in order to force yourself to learn new things by aiming more complex personal projects.