Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What is a prompt box?
#1
What is a prompt box?
Reply
#2
(07-06-2017, 10:32 AM)Kajal Wrote: What is a prompt box?


This is Just a same kind of a Java Script Alert Box with a input Textbox ... So client can enter the values into that input box and we can grab that value ...

Code:
var amount = prompt("Enter the Amount You want to Reduce:", "1");

amount : is the varable we use to grab the data client enters in the field .... 

parameter 1 : Any String 
Parameter 2 : Default VAlue
Reply
#3
A prompt box is often used if you want the user to input a value before entering a page. When a prompt box pops up, the user will have to click either "OK" or "Cancel" to proceed after entering an input value. If the user clicks "OK" the box returns the input value.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)