iTech College - Internet Technology, Online Education, E-Learning, Technician Training, Tech Tutorials, Distance Education, Virtual Learning JavaScript Course: Message Box - www.itechcollege.com JavaScript Course: Message Box - 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 > Message Box

Message Box

alert There are three message boxes: alert, confirm, and prompt. Let's look at first one:

     <body>
     <script>
     window.alert("Welcome to my site!");
     </script>
     </body>

You can put whatever you want inside the quotation marks.

confirm An example for confirm box:

     window.confirm("Are you 
		sure you want to quit?"); 

prompt Prompt box is used to allow a user to enter something according the promotion:

     window.prompt("please 
		enter user name"); 

In all our examples above, we wrote the box methods as like "window.alert()". Actually, we could simply write the instead as:

     alert();
     confirm();
     prompt();
  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: Message Box - www.itechcollege.com
Copyright ©2008, itechcollege.com. All rights reserved
iTechCollege | About iTech | Contact iTech