shayass1
using prompt
2 Answer(s)      2 years and 3 months ago
Posted in : JavaScript Questions

how to use prompt

View Answers

February 14, 2011 at 2:00 PM


Javascript prompt() method

The prompt() is a method of the window object. Prompt uses a text field to enter a value. It also has 'OK' and 'CANCEL' buttons.

<html>
<body>
<script language="javascript">
  var name;
  name = prompt("Please enter you Name"," enter you name");
  if(name != " enter you name"){
    alert("Welcome " + name + " at roseindia");
  }else{
    alert("Welcome at roseindia");
  }
</script>
</body>
</html>

February 14, 2011 at 6:28 PM


Thank you very much. you helped me.









Related Pages:
using prompt
using prompt  how to use prompt
prompt using
prompt using  I want examples to use prompt and how to move the item from the prompt to a cell in a table. thank you
javascript prompt alert
javascript prompt alert   Sending a prompt alert using a JavaScript function
javascript for prompt - JSP-Servlet
javascript for prompt  Dear sir, I have used prompt() for taking a reason while deleting using java script its working fine but prompt was coming at the top left so i want that prompt should come at middle so how to do
javascript for prompt - JSP-Servlet
javascript for prompt  Dear Sir, I am using a prompt() for taking... a prompt contains any special character or what.If contains a alert message has... then that prompt was not coming..So please tel me how to validate a prompt
command prompt is compilation is not working
command prompt is compilation is not working   Dear java users can anyone help me to run the program in command line prompt i tried by selecting... is compiling and generation the class file using javac c:\helloworld.java command
javascript for prompt - JSP-Servlet
javascript for prompt  Dear sir, I am using prompt()for taking a reason from vendor . var reason=prompt('Reason for deleting:',''); Then i... an object ,so how to remove this script error.And also this prompt is coming
Command Prompt in UI
Command Prompt in UI  Hi One Help... Please go through. I want to develop like that using jsp/javascript but nothing is striking in mind... Please give some suggestions to design first Thanks in advance---- Vanchinathan.R
Prompt
into methods in the method asking for the input it uses a prompt command...) { System.out.print(**prompt** + ' '); return numberOfGrades } I don't undersant the prompt part
javascript for textbox or prompt using servlet - JSP-Servlet
javascript for textbox or prompt using servlet  Dear sir, I am using a prompt(),when a delete is confirmed,its working fine ,but when a prompt is closed or cancel ,i have to remain in the same page but here it is going
javascript for textbox or prompt using servlet - JSP-Servlet
javascript for textbox or prompt using servlet  Dear sir I am writing script in servlet,so prompt() is not working here so please help me...\"){"); out.println(" var reason=prompt('Reason for deleting
Excel Prompt User on Focus
Excel Prompt User on Focus In this section, you will learn how to prompt user on focusing the cell using Apache POI. EXAMPLE In the below example, you will learn how to prompt user on focusing the cell. Here, the message title
What is a prompt box?
What is a prompt box?  What is a prompt box
Command Prompt in UI
Command Prompt in UI  Hi, Is there any API or JAR file for running all the windows command prompt commands like dir,echo,ping commands? If any please tell me what is it? Thanks & Regards---Vanchinathan.R
How to prompt user
How to prompt user  Dear Sir, I'm a new student, a beginner in Java. Pls help to write program as below :- a)to prompt user to input 2 integers, the 1st number entered as Digit 1 and 2nd number as Digit 2. b)Display the value
run command prompt from jsp program
run command prompt from jsp program  Hi.... Is it possible to run a command prompt from jsp? If possible please help me with some code... Thanks & Regards vanchinathan.R
Using Ant to execute class file
the java file and print the value on command prompt. Here we are using five... Using Ant to execute class file   ... this build.xml file using ant command, then the following output will be displayed
Selection Using JoptionPane
Selection Using JoptionPane  Help, can someone provide me the code using JOptionPane for the following:- Part A 1) Prompt user to make 3 selection i.e 1)Orchid $4.00 2)Rose $2.50 3)Daisy $5.00 or 0 to Quit 2) if user
Java get User Input
prompt the user to enter the name by using System.out.print() method to keep... the command prompt. We are providing you a java application
how to run a java program using run.exec()?
how to run a java program using run.exec()?  Hi..i want to compile and run a java file using run.exec().i.e., without compiling and running from command prompt i want to do them in the program itself.I am able to compile
Retrieve data using Criteria api
Retrieve data using Criteria api  import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.Query; import...(); } } And there is a Account class. when run this in command prompt i get some errors
Display alert box on clicking link
Display alert box on clicking link In this tutorial, we will display alert box to prompt message using jQuery. In the below program , html page contains a "a href" link. On clicking this link ,a alert box prompt message
Swap two numbers without using third variable
from the command prompt. Instead of using temporary variable, we have done some...Swap two numbers without using third variable In this section we are going to swap two variables without using the third variable. For this, we have used
Using HSSF 3.5 to READ XLS - Java Beginners
Using HSSF 3.5 to READ XLS  I just dont seem to get this working. I have tried the examples here on this homepage but they are out of date for 3.5... to the command prompt. Can someone help me with code for this plz?  Hi
Road distance using Java - Java Beginners
Road distance using Java  Dear All i am calculating the straight line distance between two latlong points using the simple mathematical formula... Guide how to achieve this in java i can do it using javascript but i need
Insert  Image into Database Using Servlet
Insert  Image into Database Using Servlet   ... of inserting image into database table using Servlet. This type of program is useful... retrieve using JDBC program. In the next section you will see a program
Insert Image into Database Using Servlet
Insert  Image into Database Using Servlet   ... image into database table using Servlet. This type of program is useful in social... retrieve using JDBC program. In the next section you will see a program to retrieve
Damn Small Linux 2.3 RC1 has been released now
Damn Small Linux 2.3 RC1 has been released now New check and prompt to save APSFILTER printer setup; new check and prompt to save wireless setup; new MyDSL is now a separate menu via a Fluxbox [include]; new prompt when keyboard
About IDE
and run a program, a programmer uses javac and java commands at the command prompt... the productivity. IDE may provide services itself or enables using plug-ins
Using MYSQL Database with JSP & Servlets.
Using MYSQL Database with JSP & Servlets.  ... acceres the MYSQL database. Here I am using MYSQL & tomcat server... prompt (mysql>) appears ,this means that you sucessfully installed
Writing First Hibernate Code
or from command prompt as well. I am assuming that you are familiar with MySQL...; is org.hibernate.dialect.MySQLDialect which tells the Hibernate that we are using MySQL
Creating an Encyclopedia using Java & mySQL 5 - Java Beginners
Creating an Encyclopedia using Java & mySQL 5  Dear Editor, I'm... the inputs of the administrator and prompt the officer of any invalid input... database. Source code using NetBeans: private void
using array
using array  transpose a matrix
using array
using array  transpose a matrix
Display Sum of Table Column Using In JSP
compile the java code using javac command from command prompt. Step 5:Create... Display Sum of Table Column Using In JSP... the total salary between two specific date and result is display using Jsp
using array
using array  column wise total of a matrix
using function
using function   using a function to find the value of v from the foiiowing expression 1v=1u+1*f
Identifying array using Reflection
Identifying array using Reflection       In this section we will describe you how to identify...; returns true hence you will get the following message on your command prompt. "
using array
using array  Circular left shift array element by one position
using array
using array  Circular left shift array element by one position
using array
using array  read 10 digit number and display (star
using array
using array  display 10 digit number using array and print pyramid. 1 1 1 1 1 1 1 1 1 1 1 1
Using Ajax
Using Ajax  Hi, How I can use Ajax in web programming? Tell me any example which using Ajax to call server side script? Thanks   Hi, Here are examples: PHP Ajax and Database First Ajax Example Getting Started
using for loop
using for loop  what will be the source code of the program that the output will be printing all numbers that is divisible by 3 and 5 sample output: 3 is divisible by 3 5 is divisible by 5 6 is divisible by 3 9 is divisible by 3
Java error java.lang.noclassdeffounderror
on the command prompt during the execution or running of the program. Understand... This is used to read a number printed on the command prompt. On command prompt if the programmer mistakenly 
using function
using function  write a program using function overloading to accept any sentence and print vowels and consonants sepratly   Here is an example that accepts a sentence from the user and display the vowels and consonants
using iReport
using iReport  Hello sir , I am using iReport3.0 and then i am calling the .jrxml file in jsp but i got the error.My JSP code is as below and after the jsp code i have placed the error code Thanks in advance: <
using constructor
using constructor  all constructor for matrix class?   The given code implements the Matrix class and show the addition of two matrices. public class Matrix{ int M; int N
Traverse JTree Example
and its node .Teaches, displaying the node and its path on the command prompt... of this program: After click tree node the command prompt will dispaly: 
Displaying Hierarchical data in JTree
it is also displayed on the command prompt. Program Description: The following program... prompt. C:\javaswing>javac DisplayingJTreeData.java

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.