What is a prompt box?

What is a prompt box?

What is a prompt box?

View Answers

November 8, 2010 at 5:24 PM

The prompt() is a method of the window object, just like alert() we just saw. The format for prompt() is similar to alert(), except for one addition. Prompt uses a text field to enter a value. It also has 'OK' and 'CANCEL' buttons, while the alert has only one button.

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









Related Tutorials/Questions & Answers:
What is a prompt box?
What is command prompt in Java?
Advertisements
ModuleNotFoundError: No module named 'box0'
ModuleNotFoundError: No module named 'boxr'
ModuleNotFoundError: No module named 'boxb'
ModuleNotFoundError: No module named 'boxb'
ModuleNotFoundError: No module named 'boxx'
ModuleNotFoundError: No module named 'boxx'
ModuleNotFoundError: No module named 'boxy'
ModuleNotFoundError: No module named 'boxy'
ModuleNotFoundError: No module named 'boxx'
ModuleNotFoundError: No module named 'boxy'
Prompt
ModuleNotFoundError: No module named 'boxd-client'
prompt using
using prompt
list boxs
instead of text boxe i have to show check box as selected.
Command Prompt in UI
javascript prompt alert
ModuleNotFoundError: No module named 'prompt'
javascript for prompt - JSP-Servlet
javascript for prompt - JSP-Servlet
javascript for prompt - JSP-Servlet
command prompt is compilation is not working
Command Prompt in UI
How to prompt user
ModuleNotFoundError: No module named 'dob-prompt'
ModuleNotFoundError: No module named 'prompt-for-password'
ModuleNotFoundError: No module named 'pv-prompt'
ModuleNotFoundError: No module named 'argparse-prompt'
ModuleNotFoundError: No module named 'dob-prompt'
ModuleNotFoundError: No module named 'hyper-prompt'
ModuleNotFoundError: No module named 'hyper-prompt'
ModuleNotFoundError: No module named 'prompt-box'
ModuleNotFoundError: No module named 'pv-prompt'
ModuleNotFoundError: No module named 'sphinx-prompt'
ModuleNotFoundError: No module named 'http-prompt'
ModuleNotFoundError: No module named 'prompt-toolkit'
ModuleNotFoundError: No module named 'sphinx-prompt'
ModuleNotFoundError: No module named 'influx-prompt'
Prompt for a password when deleting a data
ModuleNotFoundError: No module named 'ipython-venv-path-prompt'
ModuleNotFoundError: No module named 'prompt-tool-kit'
ModuleNotFoundError: No module named 'prompt-toolkit-menu'
ModuleNotFoundError: No module named 'xontrib-repa-prompt'
ModuleNotFoundError: No module named 'xontrib-prompt-ret-code'
ModuleNotFoundError: No module named 'xontrib-repa-prompt'
ModuleNotFoundError: No module named 'ipython-venv-path-prompt'
ModuleNotFoundError: No module named 'django-prompt-responses'

Ads