ASP高手帮下忙啦!!

来源:百度知道 编辑:UC知道 时间:2024/09/27 21:29:06
<input type="submit" name="Submit" value="修改保存" onClick="document.myform.productcontent.value = frames.message.document.body.innerHTML;">这句话表示保存了"productcontent"这个的,但我想它保存两个呢?比如一个productcontent一个productcontent2怎样可以全成这个效果呀!
好象还是不行哦!可能是我出了问题,你们应该是对的.下面就是整句的代码,各位帮忙再看下好吗?看下还有哪里出了问题.
<input type="submit" name="Submit" value="修改保存" onClick="document.myform.productcontent.value = frames.message.document.body.innerHTML;document.myform.productcontent2.value = frames.message.document.body.innerHTML;">
<input type="button" value=" 返 回 " onClick="javascript:history.go(-1)" class="unnamed5" name="button">
<input type="hidden" name="productcontent" value="">
<input type="hidden" name="linkaddress" value="<%=requ

在OnClick事件的;后面再加上
document.myform.productcontent2.value = frames.message.document.body.innerHTML;

<input type="submit" name="Submit" value="修改保存" onClick="document.myform.productcontent.value = frames.message.document.body.innerHTML;document.myform.productconten2t.value = frames.message.document.body.innerHTML;">

插入一个隐藏域<input type="submit" name="Submit" value="修改保存" onClick="document.myform.productcontent2.value = frames.message.document.body.innerHTML;">