Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu

Saturday, 21 September 2013

Basic Javascript

--Some of the basic things
--We write JavaScript for web purposes. scripting language to make webpages more interactive.
--use text editior(notepad ++)


Standard Html format



<html>

         <head>
  
<title>javascript</title>

 <head>

<body>

hello

</body>

</html>









--we can write Javascript anywhere (inside body,inside head)
--In an internet you can add lot of different scripts. Javascript is one of them. When a browser comes across   the code ..we need to tell it explicitly that we are going to work with javascript.

--so use the attribute type

<script type="text/javascript">
<script>

------------------------------------------------------------------------------------------



<!DOCTYPE html>
<html>

     <head>
 
<title></title>

<head>


<body>
<script type="text/javascript">

document.write("i am using javascript");

</script>



</body>


</html>




















No comments:

Post a Comment