iTech College - Internet Technology, Online Education, E-Learning, Technician Training, Tech Tutorials, Distance Education, Virtual Learning JavaScript Course: write and writeln - www.itechcollege.com JavaScript Course: write and writeln - www.itechcollege.com
Online Degrees Scholarships & Fellowships Internships Student Financial Aid Study Abroad Itech Bookstore
Free Courses
HTML
JavaScript
CSS
ASP
PHP
JSP
ASP.NET
SQL
AJAX
FTP
XML
Career Center
Job List
Web Jobs
Student Jobs
Computer Jobs
Engineer Jobs
Developer Jobs
Job Search
Resume Writing
Job Interview
Salary Info


itech > courses > JavaScript > write and writeln

write and writeln

In order to output text in JavaScript you must use write() or writeln(). Here's an example:

     <HTML>
     <HEAD>
     <TITLE> Welcome to my site</TITLE></HEAD>
     <BODY>
     <SCRIPT LANGUAGE="JAVASCRIPT">
     <!--
     document.write("Welcome to my site!");
     // -->
     </SCRIPT>
     </BODY>
     </HTML>

Note: the document object write is in lowercase as JavaScript is case sensitive. The difference between write and writeln is: write just outputs a text, writeln outputs the text and a line break.

  Back to Index Page
Next Page >>   Embedding and including
write and writeln
Document object
Message box
Message boxt
Variables and Conditions
Variables and Conditionst
Function
Event handler
Form
Link
Date
Window
Frame
 

JavaScript Books
JavaScript Jobs



Bookmark:  del.icio.us digg facebook Reddit Mixx BlinkList Fark Furl NewsVine Simpy Spurl Segnalo Technorati blogmarks Google YahooMyWeb Windows Live



JavaScript Course: write and writeln - www.itechcollege.com
Copyright ©2008, itechcollege.com. All rights reserved
iTechCollege | About iTech | Contact iTech