How to create an input box?

Ads
 

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>

Ads









Related Tutorials/Questions & Answers:
How to create an input box?
How to create file from input values in Jframe ?
Advertisements
how to take input table name in jsp to create table in mysql?
Create a Program that Calculates Input
How to read user input in C++
Create a input button inside js function
How to take input by user using jDialogue and use that input
PHP Form Part-6 - How to Deals with Text Boxs
How to create a confirmation box?
how to create frame in swings
how to create notepad in java
How to create arrays in JavaScript?
How to get the unicode of japanese character input in java
how to create session for login
How to get the unicode of chinese character input in j2me/java
how to transliterate the input from english to japanese
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 using jsp
how to create a queue - JMS
How to Create Keyboard in JAVA
how to create ipa file
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
input

Ads