Help - Search - Members - Calendar
Full Version: Prompt Box With Multiple Input Lines.
Zymic Webmaster Forums > Web Design & Development > Client Side Scripting > JavaScript
LancerB1
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.
anbu2020
<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>



___________________________________
Life Cover | Life Insurance
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.