This week I've learned how to create an interactive web page using JavaScript. JavaScript is easy to use and provides added capabilities for creating web pages that are lacking in HTML. While HTML allows you to create web pages that are static (what you see is what you get) JavaScript allow you to create dynamic web pages that the user can interact with. JavaScript is similar to the Java programming language, but they are not the same thing. Java was created by Sun Microsystems and its source code needs to be compiled into machine language to create standalone applications that don't require a browser to run. JavaScript was created by Netscape and is mainly used in HTML documents where its commands are interpreted by a browser. Many of the programming structures of Java and JavaScript are similar, but JavaScript uses a smaller command set that is easier to understand. JavaScript code is embedded in an HTML document. It allows for the use of variables and the creation of buttons, text boxes, and other objects that allow users to input information and interact with the web page. Java code is not embedded in HTML documents, but is compiled into a standalone program or applet which is stored in a separate file. HTML can then be used to invoke the standalone programs.
No comments:
Post a Comment