实现在当前页面和当前页面包含的IFRAME页面之间传递变量
现在我要实现在当前页面和当前页面包含的IFRAME页面之间传递变量,不希望通过参数的方式,所以我现在用session向IFRAME页面传递变量,用提交按钮的onclick事件从IFRAME页面确定变量,我觉得这样太繁琐,大家有什么更好的办法吗?代码如下,贴出来大家一起讨论.
<%session("content")=replace(replace(rs("content"),"""",""),chr(13)+chr(10),"")%>
<IFRAME STYLE="border: none" NAME=cnEditBox src="jsinc/EditBox.asp" WIDTH=500 HEIGHT=400></IFRAME>
<input name=webeditor_content type=hidden value="">
<input type="submit" name="Submit" value="提交" class="input" onclick="document.product.webeditor_content.value = document.frames.cnEditBox.getHTML(true);">