By using this site, you agree to our Privacy Policy and our Terms of Use. Close
Jo21 said:
its easier if you learn java or c++, i have been told i haven't taken javascript year i am second year second semester student.

Java and C++ do not have much use for creating web sites.  JavaScript is the way to go and is in fact an object oriented language(like Java and C++), just a slightly different style of inheritence and object creation. 

Can the OP please describe exactly what you are trying to accomplish?  JS can be quite powerful when used in conjunciton with CSS.  Maybe try out some libraries that are out there such as jquery or prototype.

A very basic html page with js would be as such.

<html>

   <head>

      <script>

      </script>

   </head>

   <body>

   </body>

</html>

Use CSS and html fragments to create the static portions of pages and then include JS to add any dynamic functionality.  There are frameworks available that help the process.

You could also use JS to create the static portions using DOM and then apply styles to them.