<script>
function getMailAdd()
{
for(i=0;i<document.all.r_email.length;i++)
{
if(document.all.r_email[i].checked)
{
document.all.email.action="mailto:"+document.all.r_email[i].value;
}
}}
</script>
<table width="640" height="20" border="0" cellpadding="0" cellspacing="0">
<form action="mailto:[email protected]" enctype="multipart/form-data" name="email" id="email" onsubmit="getMailAdd()">
<tr>
<td width="98" class="url_main">姓名</td>
<td width="515"><input name="username" type="text" id="username"></td>
</tr>
<tr>
<td class="url_main">邮件</td>
<td><input name="r_email" type="radio" value="[email protected]" checked>1
<input name="r_email" type="radio" value="[email protected]">2
<input name="r_email" type="radio" value="[email protected]">3
<input name="r_email" type="radio" value="[email protected]">4
</td>
</tr>
<tr>
<td colspan="2"><input type="submit" name="Submit" value="Submit"></td>
</tr>
</form>
</table> 请问红字部分有何意义?不是radio控件选择后使得document.all.email.action="mailto:"+document.all.r_email[i].value;么?
function getMailAdd()
{
for(i=0;i<document.all.r_email.length;i++)
{
if(document.all.r_email[i].checked)
{
document.all.email.action="mailto:"+document.all.r_email[i].value;
}
}}
</script>
<table width="640" height="20" border="0" cellpadding="0" cellspacing="0">
<form action="mailto:[email protected]" enctype="multipart/form-data" name="email" id="email" onsubmit="getMailAdd()">
<tr>
<td width="98" class="url_main">姓名</td>
<td width="515"><input name="username" type="text" id="username"></td>
</tr>
<tr>
<td class="url_main">邮件</td>
<td><input name="r_email" type="radio" value="[email protected]" checked>1
<input name="r_email" type="radio" value="[email protected]">2
<input name="r_email" type="radio" value="[email protected]">3
<input name="r_email" type="radio" value="[email protected]">4
</td>
</tr>
<tr>
<td colspan="2"><input type="submit" name="Submit" value="Submit"></td>
</tr>
</form>
</table> 请问红字部分有何意义?不是radio控件选择后使得document.all.email.action="mailto:"+document.all.r_email[i].value;么?
解决方案 »
- js求带小数的和
- htmlfile: 未知的运行时错误;
- 正则表达式[\s\S]*?在RegExp中的问题
- 求一个JQ可直接编辑的表格插件!急急急!
- Js回传服务器, 控制按钮单击事件 ASP.NET + js高手 嘻嘻
- 表单提交后,显示注册的信息
- 如何检测文本框中输入的EMAIL地址的有效性?
- 请问<input onclick="fnClickMe()">中的onclick事件,为什么通过detachEvent函数不能将它detach掉?
- 求救:如何在页面的一个文字点击链接中改变内嵌帧的URL,急啊,救偶啊
- 孟子E章兄,请问XMLHTTP怎么用呀,为什么在MSDN上面查不到他的属性和方法
- Jquery 插件 疑难杂症,求高手解答
- 高手请赐教在WEB中怎样限制图片被下载,并且不能被链接使用
这个是不是弹出我们的本地微软自带的email 然后再里面写 然后发送