Wednesday, March 5, 2014

Javascript HTML output

This can be done by using the javascript builten methods as
document.write("<H1>Hello Javascript!</H1>");
document.write("<p>Hello Javascript!</p>");

HTML code:
 <!DOCTYPE html>
 <html>
<head>
<script>
document.write("<H1>Hello Javascript!</H1>");
document.write("<p>Hello Javascript!</p>");
</script>
</head>
 </html>

Output:

What is JavaScript?

Javascript is the programming language that is lightweight, inserted into HTML pages and executed by all modern browser and loosely coupled. It is most popular programming language.

For more about Javascript Click Here!