JavaScript

JavaScript

Tuesday 17 February 2015

Notepad ++ and First Script !!

To write our first script in JavaScript language we need to download specific software which allows us to write a lines of code. One of the best software for begginers is Notepad++ you can download it from here  http://notepad-plus-plus.org/
 Here are easy steps to download it.



Go to Notepad++ website




 


When you enter the website find Download button and click on it! 











After that a downloading window appear.






After installation process open notepad and click on File and New.
And You can write your first script.
<html>
<head>
<title>This is a JavaScript example</title>
<script language="JavaScript">
<!--
document.write("Hello World!");
//-->
</script>
</head>
<body> Hi user</body>
</html>




When you want to save your script go to "FILE" and SAVE AS.
In SAVE AS TYPE select HYPER TEXT MARKUP LANGUAGE FILE(html).








If you want to run your first website script to see what you done just go to "RUN" and Launch in FireFox or Chrome.
















No comments:

Post a Comment