Posted 16 February 2017 - 06:32 PM
The innerHTML property is not a URL to load, it is the actual HTML string to load. You need to send an ajax request to get the contents of the page and then put that in the innerHTML. Also note that each sub-page should not be a complete HTML document, it should only be the HTML that would go inside that element just as if you copy and paste it into that element. It's not a complete document with a doctype, head, body, etc, it's just the markup that you want inside that element.
Know your history: Babbage | Lovelace | Turing | Hopper | Ritchie
ConTEXT Sublime Text Opera PHP MySQL phpMyAdmin
Use a debugger: Firefox, IE, Chrome, Safari, or Opera
Know the foundations of computer science: algorithms, machine architectures, data structures, etc. Don't just blindly copy techniques from application to application. Know what you are doing, that it works, and why it works. Don't think you know what the industry will be in five years time or what you'll be doing then, so gather a portfolio of general and useful skills. Try to write better, more principled code. Work to make "programming" more of a professional activity and less of a low-level "hacking" activity (programming is also a craft, but not just a craft). Learn from the classics in the field and the better advanced textbooks; don't be satisfied with the easily digested "how to" guides and online documentation - it's shallow.
-- Bjarne Stroustrup
He that teaches himself has a fool for a master.
-- Benjamin Franklin (paraphrased)