ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories  >>  Code Snippets  >>  Scripts_Markup Code  >>  JavaScript Code
 
 


 

 
 PHP Code interview questions  PHP Code Interview Questions
 JSP Code interview questions  JSP Code Interview Questions
 ASP Code interview questions  ASP Code Interview Questions
 CGI Perl Code interview questions  CGI Perl Code Interview Questions
 JavaScript Code interview questions  JavaScript Code Interview Questions
 VB Script Code interview questions  VB Script Code Interview Questions
 Shell Script Code interview questions  Shell Script Code Interview Questions
 Python Code interview questions  Python Code Interview Questions
 WinRunner Code interview questions  WinRunner Code Interview Questions
 HTML DHTML XHTML Code interview questions  HTML DHTML XHTML Code Interview Questions
 XML interview questions  XML Interview Questions
 Scripts_Markup Code AllOther interview questions  Scripts_Markup Code AllOther Interview Questions
Question
Code for Adding Message and Confirmation Boxes Using 
JavaScript?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Code for Adding Message and Confirmation Boxes Using JavaScript?
Answer
# 1
<html>
<head>
<script>
function message()
{
 var str;
 str="Click Ok to continue!!!";
 alert(str);
}
function confirmation()
{
var str;
 str="Are you sure to delete?Then click Ok or Cancel!!!";
 confirm(str);

}
</script>
</head>
<body>
<form>
<h3>Click the button below which shows message box</h3>
<input type="submit" value="Click Me" name="submit" 
onClick="return message()">
<h3>Click the button below which shows confirmation box</h3>
<input type="submit" value="Delete" name="delete" 
onClick="return confirmation()">

</form>
</body>
</html>
 
Is This Answer Correct ?    0 Yes 1 No
Sivasubramanian.k
 

 
 
 
Other JavaScript Code Interview Questions
 
  Question Asked @ Answers
 
could you please tell me for what javac, javax,swing,awt.*; are using. what is the meaning and differences. and also there are 4 access modifiers in java. public, private, protected, default. what is the meaning of these 4 access modifiers and difference. public is the access modifier void means return data type disp() means function name what mean by static  1
write a function to validate a given date  1
Code for Adding Message and Confirmation Boxes Using JavaScript?  1
program that will accept any name and will be stored in an array  2
How to Add Message and Confirmation Boxes Using JavaScript?  1
code to calculate the number of days between two dates  2
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space: TCS1
How to test whether two strings are equal or not ?  1
 
For more JavaScript Code Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com