手机
当前位置:查字典教程网 >编程开发 >Javascript教程 >动态加载iframe
动态加载iframe
摘要:服务器端生成客户端生成if....thenstr=""endifif...thenstr=str&""endif生成IFRMAEdocume...

服务器端生成 <% if ..... then response.write "<iframe name=frame1 src=xxx.html width=0 height=0>" end if if ..... then response.write "<iframe name=frame2 src=xxx.html width=0 height=0>" end if %> 客户端生成 <div id=div1></div> <script language=vbscript> if .... then str="<iframe name=frame1 src=xxx.html width=0 height=0>" end if if ... then str=str&"<iframe name=frame2 src=xxx.html width=0 height=0>" end if 生成IFRMAE document.all("div1").innerhtml=str 给IFRAME里面的表单控件赋值。 document.all("frame1").document.all("xxx").value=xxx 提交时 document.all("frame1").form1.submit() document.all("frame2").form1.submit() </script> 以上方法说明了一个思路,没有经过验证,请自行验证。

【动态加载iframe】相关文章:

AspNet中使用JQuery上传插件Uploadify详解

列表内容的选择

一端时间轮换的广告

JavaScript动态添加style节点的方法

JQuery实现动态添加删除评论的方法

Javascript实现的SHA-256加密算法完整实例

动态加载js、css等文件跨iframe实现

学习javascript文件加载优化

javascript 动态添加表格行

JS动态增删表格行的方法

精品推荐
分类导航