Prompt Input Dialog : Dialog « Window Browser « JavaScript DHTML

JavaScript DHTML
1. Ajax Layer
2. Data Type
3. Date Time
4. Development
5. Document
6. Dojo toolkit
7. Event
8. Event onMethod
9. Ext JS
10. Form Control
11. GUI Components
12. HTML
13. Javascript Collections
14. Javascript Objects
15. Javascript Properties
16. jQuery
17. Language Basics
18. Mochkit
19. Mootools
20. Node Operation
21. Object Oriented
22. Page Components
23. Rico
24. Scriptaculous
25. Security
26. SmartClient
27. Style Layout
28. Table
29. Utilities
30. Window Browser
31. YUI Library
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
JavaScript DHTML » Window Browser » Dialog 
Prompt Input Dialog
  
<HTML>
<HEAD>
<SCRIPT language="JavaScript">
<!--
var the_name=window.prompt("What is your name?","");
first_char=the_name.charAt(0);
//-->
</SCRIPT>
</HEAD>
<BODY>
<SCRIPT language="JavaScript">
<!--

if (first_char=="S"){
    document.write("Your name is "+the_name+"!");
}else{
    document.write("Your name needs to start with an uppercase S to be displayed!");
}
//-->
</SCRIPT>
</BODY>
</HTML>
           
         
    
  
Related examples in the same category
1. Displays and monitors the most used dialog boxes
2. Dialog in JavaScript
3. Open a dialog window
4.  String Object's Length, Document.Location Properties, confirm and input dialog
5.  Working with the Alert, Confirm, and Prompt Methods
6. Alert box (dialog) with line-breaks
7. Button click to display dialog
8. Pop-up Window - centred
9. Display a confirm box (dialog)
10. Display a prompt box (dialog)
11. Confirm Dialog Box
12. The Prompt Dialog Box: check the return result
13. Document for the Modeless Dialog Box
14. Use prompt for password checking
15. User input
16. Yes/No Confirmation
17. Non string parameter for alert()
18. Dialog Box Demo
19. Alert Window
20. Main Page for show Modeless Dialog
21. Document for the Modal Dialog
22. Main Page for show Modal Dialog
23. Create a pop-up
24. Alert Dialog
25. What is the output of a confirm dialog
26. If OK button was clicked
27. Use if-else with confirm dialog
28. Pass string parameter to alert dialog box
29. Pass integer value to alert dialog box
30. Assign returning value from prompt dialog box to your variable
31. A carriage return in alert dialog box
32. Escape string in alert dialog box
33. Tab key in the alert dialog box
34. New line character in alert box
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.