Simple Examples in Javascript

document.write is a simple function used to display the content to the browser and it also embeds HTML tags inside it and renders as HTML tags.

<script type=text/javascript>
document.write("Hello How are you");
document.write("<h1> This is header 1 </h1>");
document.write("<p> This is a new paragraph </p>");


Published by


I am a professor cum blogger loves to blog on recent technologies, trends, articles on Personal productivity, How to's, blogging, lecture notes, video lectures,etc on topics related to Open source technologies, Embedded Systems, Linux, etc.

One thought on “Simple Examples in Javascript”

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s