Wednesday, June 26, 2013

Add javascript in you html

For adding javascript code in your html, You just have to put the script tag in html

For example

<script type="text/javascipt">



<!-- write javascript code here -->


</script>


Put this script tag in your html page head tag section. 

<html>
<head>
<script type="text/javascipt">



<!-- write javascript code here -->


</script>

</head>
<body>
<!-- html code here -->
</body>

</html>


Or You may add through an link too..

<html>
<head>
<link rel="text/javascript" href="new.js">

</head>
<body>
<!-- html code here -->
</body>

</html>


And code you data in new.js

<!-- write javascript code here -->

as a separate file



No comments:

Post a Comment

What You Think