I am trying to do the following.I have a HTML page in which I have a button storing email address,when I click on that button I should get a HTML page with same email address store in a text.How should I do it.My scirpt is----
<html>
<script language=javascript>
function onClick(a)
{
var w=window.document.form[0].n1.value
window.write(w);
}
<body>
<table bgcolor=megenta align=center width=100% cellspacing=2 cellpadding=2>
<td align=left><input type=button name= n1 value=ascdef@hotmail.com onClick="onClick(this)">
</body>
</html>
When I click on the button I sh get
Email Address: email address sh come here and the
Submit button
<html>
<script language=javascript>
function onClick(a)
{
var w=window.document.form[0].n1.value
window.write(w);
}
<body>
<table bgcolor=megenta align=center width=100% cellspacing=2 cellpadding=2>
<td align=left><input type=button name= n1 value=ascdef@hotmail.com onClick="onClick(this)">
</body>
</html>
When I click on the button I sh get
Email Address: email address sh come here and the
Submit button