How to create an input box?

How to create an input box?

How to create an input box?

View Answers

November 10, 2010 at 6:05 PM

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. If the user clicks "Cancel" the box returns null.

<script type="text/javascript">
         var name = prompt("What is your name", "Type you name here");
document.write("Hi " + name + "\nHope you are enjoying JavaScript!");
      </script>









Related Tutorials/Questions & Answers:
How to create an input box?
How to create file from input values in Jframe ?
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'
how to take input table name in jsp to create table in mysql?
ModuleNotFoundError: No module named 'boxd-client'
Create a Program that Calculates Input
Create a input button inside js function
How to read user input in C++
PHP Form Part-6 - How to Deals with Text Boxs
How to create simple HTML Form?
How to take input by user using jDialogue and use that input
input
list boxs
how to create using jsp
How to get the unicode of japanese character input in java
how to transliterate the input from english to japanese
How to get the unicode of chinese character input in j2me/java
how to save an input to jsp page in a text file?ave an input given b
program to create student report using java applet,read the input using text boxesand generate the grades..?
instead of text boxe i have to show check box as selected.
how to create a xml page
how to solve error like'java.lang.NumberFormatException: For input string: "7600113411"' this
How to create arrays in JavaScript?
How to create a confirmation box?
how to create frame in swings
how to create notepad in java
how to create session for login
How to create a class in java
How to create form in Swings
how to create web aplli
how to create web aplli
how to create a queue - JMS
How to Create Keyboard in JAVA
how to create ipa file
how to create rdd in pyspark
how to create a table
how to create uiwebview programmatically
How To Create a Table.
How to create charts in Java?
how to create array in r
How to create options in HTML

Ads