Zymic Forums

Webmaster resources

Zymic IRC Server

Chat in real time at irc.zymic.com - Learn More

Welcome

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.

left Zymic Webmaster ForumsWeb Design & DevelopmentClient Side ScriptingJavaScript right
  Closed Topic Start new topic
left right
LancerB1
post 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.
Go to the top of the page 
 
  + Quote Post
anbu2020
post Aug 19 2010, 07:28 AM
Post #2


Newbie
*

Group: Members
Posts: 6
Joined: 17-August 10
Member No.: 153,192



<html>
<head>
&lt;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
Go to the top of the page 
 
  + Quote Post
 Closed Topic Start new topic
left right
0 Members:
left right
 


Lo-Fi Version Time is now: 23rd May 2013 - 02:51 AM