Welcome visitors of MIC Computer

Welcome to my blog. With this blog you can post your question about computer and programming for absolutely free (free consultation sponsored by MIC Computer).. Well what are you waiting for just feel free to post your question or share with me about your computer / programming experience

Friday, September 2, 2011

My First Javascript

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

<html>
<head>
<title>My First Javascript</title>
</head>
<body>
<script type="text/javascript">
document.write("Hello World");
</script>

</body>
</html>
 
Write this code and save it as javascript.html

No comments: