Latest Tutorials| Questions and Answers|Ask Questions?|Site Map




Have Programming Question? Ask it here!
 
 
 


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


how to use prompt


Advertisement
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
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
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
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 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
What is a prompt box?
What is a prompt box?  What is a prompt box
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
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
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
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
How to run a Java program in CMD
in command prompt.  Create a myproject folder in C folder Open... to the Start Menu and open the command prompt. Change the directory from c to C:\myproject. To change the directory type the given command in your command prompt
Swapping of two numbers in java
Swapping of two numbers in java In this example we are going to describe swapping of two numbers in java  without using the third number in java. We... values from the command prompt. The swapping of two numbers is based on simple
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
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
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  Circular left shift array element by one position
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
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
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
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: &lt
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
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
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 eval in Java
using eval in Java  using eval in Java
string palindrom using vbscript?
string palindrom using vbscript?  string palindrom using vbscript
write a programm using java
write a programm using java  print the following using java programming
Using throw in java method
Using throw in java method  using throw with method implies what
Date object using JavaScript
Date object using JavaScript  What's the Date object using JavaScript
Is JSF using JSP?
Is JSF using JSP?  Is JSF using JSP
why using static keyword
why using static keyword  why using static keyword
Image Movement using Swings
Image Movement using Swings  How to move image using Swings
delete an entry using JavaScript
delete an entry using JavaScript  How to delete an entry using JavaScript
report generation using jsp
report generation using jsp  report generation coding using jsp
survey poll using java
survey poll using java  how to make a survey poll using java? i am using netbeans and glassfish
A Java Program by using JSP
A Java Program by using JSP  how to draw lines by using JSP plz show me the solution by using program
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
Advertisements
 

 

 

DMCA.com