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: Only Registered users can view linksWhat 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


Forum Jump:


Users browsing this thread: 1 Guest(s)