Java Script - a client side scripting language
JavaScript, also known as ECMAScript (the untrademarked name used for the standard), is a dynamic programming language. It is most commonly used as part of web browsers, whose implementations allow client-side scripts to interact with the user, control the browser, communicate asynchronously, and alter the document content that is displayed. So, what do you need to learn JavaScript, the answer is simple:
- Basic knowledge of using a personal computer (like creating folders and files, copy, cut, paste, edit).
- A basic text editor. All personal computers comes with a text editor (like Notepad for Windows, TextEdit in Mac, gedit in Linux with GNOME etc). You can also use other more advanced text editor if you have like Adobe Dream Weaver, or if you prefer the free ones just search online. But a very basic one will do.
- A browser – All modern PC will come with a browser in build (internet explorer for Windows, Safari for Mac). You can also download a third party browser like Google Chrome or Mozilla Firefox. The browser is like a channel to browse the net, or to see your HTML pages comes to life.
- Knowledge of HTML – well you’ll need to know HTML and preferably CSS. But don’t worry if you didn’t know HTML or CSS, just browse our tutorial and learn.
<!DOCTYPE html> <html> <head> <title>JavaScript</title> <script type="text/javascript"> function hello(){ document.getElementById('hello').innerHTML = "Hello World!"; } </script> </head> <body> <h1>My First JavaScript</h1> <button type="button" onclick="hello();">Click Me.</button> <p id="hello"></p> </body> </html>Save the above file as an HTML document and open in your browser to see the effect. So, go ahead and learn more JavaScript.
COMMENTS