using prompt

using prompt

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 Tutorials/Questions & Answers:
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
Advertisements
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
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
Video Tutorial: How to create a database in MySQL using Command prompt?
How to create a database in MySQL using Command prompt MySQL is an Operation... is the video tutorial of "How to create database in MySQL using command prompt... in MySQL using command prompt. To create a database we need to use
javascript prompt alert
javascript prompt alert   Sending a prompt alert using a JavaScript function
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
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
What is a prompt box?
What is a prompt box?  What is a prompt box
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
ModuleNotFoundError: No module named 'prompt'
ModuleNotFoundError: No module named 'prompt'  Hi, My Python... 'prompt' How to remove the ModuleNotFoundError: No module named 'prompt'... to install padas library. You can install prompt python with following command
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
What is command prompt in Java?
What is command prompt in Java?  Hi, What is command prompt in Java? Thanks   Hi, On the Windows Command Prompt is a program to run the dos commands. This prompt is used to run any program by typing the name
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
Prompt for a password when deleting a data
Prompt for a password when deleting a data  I am using netbeans and mysql. i have added a username and password. i have a set of data in the database. so when deleting a data it should prompt for the password and if the password
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
ModuleNotFoundError: No module named 'dob-prompt'
ModuleNotFoundError: No module named 'dob-prompt'  Hi, My Python... 'dob-prompt' How to remove the ModuleNotFoundError: No module named 'dob-prompt' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'hyper-prompt'
ModuleNotFoundError: No module named 'hyper-prompt'  Hi, My Python... 'hyper-prompt' How to remove the ModuleNotFoundError: No module named 'hyper-prompt' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'prompt-box'
ModuleNotFoundError: No module named 'prompt-box'  Hi, My Python... 'prompt-box' How to remove the ModuleNotFoundError: No module named 'prompt-box' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'prompt-for-password'
ModuleNotFoundError: No module named 'prompt-for-password'  Hi, My... named 'prompt-for-password' How to remove the ModuleNotFoundError: No module named 'prompt-for-password' error? Thanks   Hi
ModuleNotFoundError: No module named 'prompt-toolkit'
ModuleNotFoundError: No module named 'prompt-toolkit'  Hi, My... named 'prompt-toolkit' How to remove the ModuleNotFoundError: No module named 'prompt-toolkit' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'pv-prompt'
ModuleNotFoundError: No module named 'pv-prompt'  Hi, My Python...-prompt' How to remove the ModuleNotFoundError: No module named 'pv-prompt' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'pv-prompt'
ModuleNotFoundError: No module named 'pv-prompt'  Hi, My Python...-prompt' How to remove the ModuleNotFoundError: No module named 'pv-prompt' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'sphinx-prompt'
ModuleNotFoundError: No module named 'sphinx-prompt'  Hi, My... 'sphinx-prompt' How to remove the ModuleNotFoundError: No module named 'sphinx-prompt' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'sphinx-prompt'
ModuleNotFoundError: No module named 'sphinx-prompt'  Hi, My... 'sphinx-prompt' How to remove the ModuleNotFoundError: No module named 'sphinx-prompt' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'argparse-prompt'
ModuleNotFoundError: No module named 'argparse-prompt'  Hi, My... named 'argparse-prompt' How to remove the ModuleNotFoundError: No module named 'argparse-prompt' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'dob-prompt'
ModuleNotFoundError: No module named 'dob-prompt'  Hi, My Python... 'dob-prompt' How to remove the ModuleNotFoundError: No module named 'dob-prompt' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'http-prompt'
ModuleNotFoundError: No module named 'http-prompt'  Hi, My Python... 'http-prompt' How to remove the ModuleNotFoundError: No module named 'http-prompt' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'hyper-prompt'
ModuleNotFoundError: No module named 'hyper-prompt'  Hi, My Python... 'hyper-prompt' How to remove the ModuleNotFoundError: No module named 'hyper-prompt' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'influx-prompt'
ModuleNotFoundError: No module named 'influx-prompt'  Hi, My... 'influx-prompt' How to remove the ModuleNotFoundError: No module named 'influx-prompt' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'django-prompt-responses'
ModuleNotFoundError: No module named 'django-prompt-responses'  Hi...: No module named 'django-prompt-responses' How to remove the ModuleNotFoundError: No module named 'django-prompt-responses' error? Thanks   
ModuleNotFoundError: No module named 'ipython-venv-path-prompt'
ModuleNotFoundError: No module named 'ipython-venv-path-prompt'  Hi...: No module named 'ipython-venv-path-prompt' How to remove the ModuleNotFoundError: No module named 'ipython-venv-path-prompt' error? Thanks  
ModuleNotFoundError: No module named 'prompt-tool-kit'
ModuleNotFoundError: No module named 'prompt-tool-kit'  Hi, My... named 'prompt-tool-kit' How to remove the ModuleNotFoundError: No module named 'prompt-tool-kit' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'prompt-toolkit-menu'
ModuleNotFoundError: No module named 'prompt-toolkit-menu'  Hi, My... named 'prompt-toolkit-menu' How to remove the ModuleNotFoundError: No module named 'prompt-toolkit-menu' error? Thanks   Hi
ModuleNotFoundError: No module named 'xontrib-prompt-ret-code'
ModuleNotFoundError: No module named 'xontrib-prompt-ret-code'  Hi...: No module named 'xontrib-prompt-ret-code' How to remove the ModuleNotFoundError: No module named 'xontrib-prompt-ret-code' error? Thanks   
ModuleNotFoundError: No module named 'xontrib-prompt-vi-mode'
ModuleNotFoundError: No module named 'xontrib-prompt-vi-mode'  Hi...: No module named 'xontrib-prompt-vi-mode' How to remove the ModuleNotFoundError: No module named 'xontrib-prompt-vi-mode' error? Thanks   Hi
ModuleNotFoundError: No module named 'django-prompt-responses'
ModuleNotFoundError: No module named 'django-prompt-responses'  Hi...: No module named 'django-prompt-responses' How to remove the ModuleNotFoundError: No module named 'django-prompt-responses' error? Thanks   
ModuleNotFoundError: No module named 'prompt-tr-free'
ModuleNotFoundError: No module named 'prompt-tr-free'  Hi, My... named 'prompt-tr-free' How to remove the ModuleNotFoundError: No module named 'prompt-tr-free' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'xontrib-repa-prompt'
ModuleNotFoundError: No module named 'xontrib-repa-prompt'  Hi, My... named 'xontrib-repa-prompt' How to remove the ModuleNotFoundError: No module named 'xontrib-repa-prompt' error? Thanks   Hi
ModuleNotFoundError: No module named 'xontrib-repa-prompt'
ModuleNotFoundError: No module named 'xontrib-repa-prompt'  Hi, My... named 'xontrib-repa-prompt' How to remove the ModuleNotFoundError: No module named 'xontrib-repa-prompt' error? Thanks   Hi
ModuleNotFoundError: No module named 'ipython-venv-path-prompt'
ModuleNotFoundError: No module named 'ipython-venv-path-prompt'  Hi...: No module named 'ipython-venv-path-prompt' How to remove the ModuleNotFoundError: No module named 'ipython-venv-path-prompt' error? Thanks  
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
How to connect to MySQL from command prompt?
How to connect to MySQL from command prompt? This video tutorial walks you through the steps to connect to MySQL from command prompt in Windows machine... to the command prompt and typing the “mysql <with arguments>&rdquo
How to check if ZooKeeper is running or up from command prompt
How to check if ZooKeeper is running or up from command prompt  Hi, I want to see if the ZooKeeper is running or not on my Hadoop cluster. How to check if ZooKeeper is running or up from command prompt? Thanks   Hi
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
using array
using array  transpose a matrix
using array
using array  transpose a matrix

Ads