Prompt Box With Multiple Input Lines. |
||
Welcome to the Zymic webmaster forums. Our forums are here to provide people the free ability to discuss a range of websites related topics such as design, development coding and marketing.
In order to post you will need to register for a zymic account or if you already have one simply login by using the form on the left.
Zymic Webmaster Forums Web Design & Development Client Side Scripting JavaScript |
||
![]() |
Prompt Box With Multiple Input Lines. |
||
Oct 14 2009, 08:37 PM
Post
#1
|
|
|
Newbie ![]() Group: Members Posts: 16 Joined: 10-October 09 Member No.: 113,416 |
I want to know how can I create a prompt box with multiple lines, or at least with two lines: one to input the user name and another one to input a password. I saw an example of this in W3schools that I use to create the authentication box, but then lost the code of it. Thank you for your time.
|
|
|
Aug 19 2010, 07:28 AM
Post
#2
|
|
|
Newbie ![]() Group: Members Posts: 6 Joined: 17-August 10 Member No.: 153,192 |
<html>
<head> <script type="text/javascript"> var x=0; var y; function show() { var y=prompt("Please enter a number",""); if (name!=null && name!="") { y=y*1; x+=y; document.write(y); } } </script> </head> <body> <input type="button" onclick="show()" value="Show prompt box" /> </body> </html> ___________________________________ This post has been edited by zpcs: Dec 18 2012, 12:57 PM
Reason for edit: Removal of SEO Link Building - Forbidden
|
|
|
![]() |
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users) |
||
| 0 Members: | ||
Forum Jump |
||
| Lo-Fi Version | Time is now: 23rd May 2013 - 02:51 AM |