Javascript was designed by Brendan Eich at Netscape (with Navigator 2.0) and was used on all browser on 1996. Javascript is an implementation of the ECMAScript language standard and ECMA-262 is the official JavaScript standard. If PHP is a server side programming language, Javascript is a client side programming language. It has the same function like VBscript.
Javascript is different with java, although they have a lot of same function and syntax. What is the different between javascript, HTML and PHP? You know if you use HTML you cannot make a dynamic page. If you use PHP, you have to refresh the page if you want to update the page. If you use javascript than you can update the page without press the refresh button.
This is our first javascript program:
Hello World
<head>
<title>My First Javascript</title>
</head>
<body>
<script type="text/javascript">
document.write("Hello World");
</script>
</body>
</html>
No comments:
Post a Comment