Mack911
04-30-2007, 08:09 AM
Hi .. !! everything works fine in this code.. but the only problem I can use the button just once, unless I refresh the page. Thanks in advance. _________________________________________________________________
<html>
<head>
<
<script type="text/javascript">
function email()
{
email = window.prompt("WHAT IS YOUR E-MAIL ADDRESS?");
test ()
}
function test()
{
if (email.indexOf('@') != -1)
{ alert ("VALID E-MAIL");
write() }
else
{ alert("INVALID EMAIL"); }
}
</script>
<title>Page 6</title>
</head>
<body>
<form>
<input type="button"
onclick="email()"
value="Click Here !!">
</form>
<script type="text/javascript">
function write()
{
alert("Thankyou For Entering Your E-Mail Address");
}
</script>
</body>
</html>
<html>
<head>
<
<script type="text/javascript">
function email()
{
email = window.prompt("WHAT IS YOUR E-MAIL ADDRESS?");
test ()
}
function test()
{
if (email.indexOf('@') != -1)
{ alert ("VALID E-MAIL");
write() }
else
{ alert("INVALID EMAIL"); }
}
</script>
<title>Page 6</title>
</head>
<body>
<form>
<input type="button"
onclick="email()"
value="Click Here !!">
</form>
<script type="text/javascript">
function write()
{
alert("Thankyou For Entering Your E-Mail Address");
}
</script>
</body>
</html>