<<MR0624
html question
Started by
MR0624
, Mar 20 2005 07:16 PM
#1
Posted 20 March 2005 - 07:16 PM
<<MR0624
#2
Posted 20 March 2005 - 07:53 PM
add action="mailto:[email protected]" inside the form tag, as below
<form name="form1" action="mailto:[email protected]" ... />
<form name="form1" action="mailto:[email protected]" ... />
#3
Posted 20 March 2005 - 07:56 PM
the previous post will work if the email address is hard coded.
will send javascript code for text box address, soon.
will send javascript code for text box address, soon.
#4
Posted 20 March 2005 - 07:59 PM
just got it you guys. Thanks a lot.....
<<MR0624
<<MR0624
#5
Posted 20 March 2005 - 09:04 PM
try this:
<html>
<head>
<script LANGUAGE="JavaScript">
function mailWindow() {
DispWin = window.open('','NewWin', 'toolbar=no,status=no,width=300,height=200');
tag1 = "<a href=\'";
addr = "mailto:" + document.form1.address.value;
tag2 = "\'>";
linkText = "send mail to " + document.form1.address.value;
link = tag1 + addr + tag2 + linkText;
DispWin.document.write( link );
}
</script>
</head>
</body>
<body>
<form name="form1">
<p><b>Address:</b> <input TYPE="TEXT" LENGTH="30" NAME="address">
</p>
<p><input TYPE="BUTTON" VALUE="Address Ready" onClick="mailWindow();"></p>
</form>
</html>
<html>
<head>
<script LANGUAGE="JavaScript">
function mailWindow() {
DispWin = window.open('','NewWin', 'toolbar=no,status=no,width=300,height=200');
tag1 = "<a href=\'";
addr = "mailto:" + document.form1.address.value;
tag2 = "\'>";
linkText = "send mail to " + document.form1.address.value;
link = tag1 + addr + tag2 + linkText;
DispWin.document.write( link );
}
</script>
</head>
</body>
<body>
<form name="form1">
<p><b>Address:</b> <input TYPE="TEXT" LENGTH="30" NAME="address">
</p>
<p><input TYPE="BUTTON" VALUE="Address Ready" onClick="mailWindow();"></p>
</form>
</html>
Similar Topics
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users